summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-07-25 23:48:37 +0200
committerTreeki <treeki@gmail.com>2012-07-25 23:48:37 +0200
commit72b37b585d7d6e5a69b572e20fd4f2bdbbc829e5 (patch)
treeae156fc41876d4a866d555b069fb7f0e5158c035
parent93d44c82000b9cc3b420ae4587846bb8f2db5faa (diff)
downloadkamek-72b37b585d7d6e5a69b572e20fd4f2bdbbc829e5.tar.gz
kamek-72b37b585d7d6e5a69b572e20fd4f2bdbbc829e5.zip
node colours should be fixed now
-rw-r--r--src/koopatlas/mapdata.cpp1
-rw-r--r--src/koopatlas/pathmanager.cpp3
2 files changed, 3 insertions, 1 deletions
diff --git a/src/koopatlas/mapdata.cpp b/src/koopatlas/mapdata.cpp
index 63fd0b7..769c6c8 100644
--- a/src/koopatlas/mapdata.cpp
+++ b/src/koopatlas/mapdata.cpp
@@ -270,7 +270,6 @@ void dKPMapData_c::fixup() {
for (int nodeIdx = 0; nodeIdx < pathLayer->nodeCount; nodeIdx++) {
if (pathLayer->nodes[nodeIdx]->type == dKPNode_s::LEVEL) {
pathLayer->nodes[nodeIdx]->extra = &levelNodeExtraArray[extraIdx];
- pathLayer->nodes[nodeIdx]->setupNodeExtra();
extraIdx++;
}
}
diff --git a/src/koopatlas/pathmanager.cpp b/src/koopatlas/pathmanager.cpp
index de2a584..5f38043 100644
--- a/src/koopatlas/pathmanager.cpp
+++ b/src/koopatlas/pathmanager.cpp
@@ -65,6 +65,9 @@ void dWMPathManager_c::setup() {
isEnteringLevel = false;
unlockPaths();
SpammyReport("done\n");
+
+ for (int i = 0; i < pathLayer->nodeCount; i++)
+ pathLayer->nodes[i]->setupNodeExtra();
}
static u8 *PathAvailabilityData = 0;