From 86cef888c196c138f71388aa9b701ac09eb95d14 Mon Sep 17 00:00:00 2001 From: Colin Noga Date: Mon, 23 Jul 2012 00:34:04 -0500 Subject: More node and path related code --- src/koopatlas/pathmanager.cpp | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) (limited to 'src/koopatlas/pathmanager.cpp') diff --git a/src/koopatlas/pathmanager.cpp b/src/koopatlas/pathmanager.cpp index 7457f99..41515a6 100644 --- a/src/koopatlas/pathmanager.cpp +++ b/src/koopatlas/pathmanager.cpp @@ -63,20 +63,6 @@ void dWMPathManager_c::setup() { // unlock all needed paths SpammyReport("Unlocking paths\n"); - for (int i = 0; i < pathLayer->pathCount; i++) { - dKPPath_s *path = pathLayer->paths[i]; - - if (path->unlockType > 0) { - u32 conds = save->GetLevelCondition(path->unlockLevelNumber[0] - 1, path->unlockLevelNumber[1] - 1); - - if (path->unlockType == 1 && (conds & COND_NORMAL)) - path->isAvailable = true; - else if (path->unlockType == 2 && (conds & COND_SECRET)) - path->isAvailable = true; - else - path->isAvailable = false; - } - } SpammyReport("done\n"); } @@ -374,3 +360,19 @@ void dWMPathManager_c::activatePoint() { } +void dWMPathManager_c::unlockAllPaths() { + + for (int i = 0; i < pathLayer->pathCount; i++) { + dKPPath_s *path = pathLayer->paths[i]; + path->isAvailable = true; + } + + // Can't change node models - the price we pay for not using anims + // for (int i = 0; i < pathLayer->nodeCount; i++) { + // dKPNode_s *node = pathLayer->nodes[i]; + // node->setupNodeExtra(); + // } + +} + + -- cgit v1.2.3