summaryrefslogtreecommitdiff
path: root/src/koopatlas/pathmanager.cpp
diff options
context:
space:
mode:
authorColin Noga <Tempus@chronometry.ca>2012-07-23 00:34:04 -0500
committerColin Noga <Tempus@chronometry.ca>2012-07-23 00:34:04 -0500
commit86cef888c196c138f71388aa9b701ac09eb95d14 (patch)
treea18dedeb0f085386eeac66a3f938894ed43cef16 /src/koopatlas/pathmanager.cpp
parent248e7915227efa19a443f22aa6f80fe52a5a3b3a (diff)
downloadkamek-86cef888c196c138f71388aa9b701ac09eb95d14.tar.gz
kamek-86cef888c196c138f71388aa9b701ac09eb95d14.zip
More node and path related code
Diffstat (limited to '')
-rw-r--r--src/koopatlas/pathmanager.cpp30
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();
+ // }
+
+}
+
+