diff options
Diffstat (limited to 'src/koopatlas/pathmanager.cpp')
-rw-r--r-- | src/koopatlas/pathmanager.cpp | 30 |
1 files changed, 16 insertions, 14 deletions
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(); + // } + +} + + |