diff options
author | Treeki <treeki@gmail.com> | 2012-09-27 04:40:34 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-09-27 04:40:34 +0200 |
commit | 411c5a8e210b5cbca330a5438e2406dbe1ffecab (patch) | |
tree | e3df3b98058dc979b759080504f52cd88e68d2b4 /src/koopatlas/pathmanager.cpp | |
parent | 014f3668eb47b1576bdc182b1db00417f9938cf1 (diff) | |
download | kamek-411c5a8e210b5cbca330a5438e2406dbe1ffecab.tar.gz kamek-411c5a8e210b5cbca330a5438e2406dbe1ffecab.zip |
made world changes work, and HUD colourising and other fun things
Diffstat (limited to '')
-rw-r--r-- | src/koopatlas/pathmanager.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/koopatlas/pathmanager.cpp b/src/koopatlas/pathmanager.cpp index 2401e04..896707a 100644 --- a/src/koopatlas/pathmanager.cpp +++ b/src/koopatlas/pathmanager.cpp @@ -566,7 +566,7 @@ void dWMPathManager_c::moveThroughPath() { isJumping = false; timer = 0.0; - SpammyReport("reached path end (%p)\n", to); + SpammyReport("reached path end (%p) with type %d\n", to, to->type); bool reallyStop = false; @@ -595,7 +595,7 @@ void dWMPathManager_c::moveThroughPath() { SaveBlock *save = GetSaveFile()->GetBlock(-1); OSReport("Activating world change %d\n", to->worldID); - dKPWorldDef_s *world = dScKoopatlas_c::instance->mapData.findWorldDef(to->worldID); + const dKPWorldDef_s *world = dScKoopatlas_c::instance->mapData.findWorldDef(to->worldID); if (world) { OSReport("Found!\n"); strncpy(save->newerWorldName, world->name, 36); @@ -653,13 +653,6 @@ void dWMPathManager_c::moveThroughPath() { save->current_path_node = pathLayer->findNodeID(to); if (!calledEnteredNode) dWMHud_c::instance->enteredNode(); - - if (to->type == dKPNode_s::LEVEL) { - NWRWorld nWorld = NewerWorldForLevelID(to->levelNumber[0], to->levelNumber[1]); - if (nWorld != UNKNOWN_WORLD) { - save->currentNewerWorld = (u8)nWorld; - } - } } else { startMovementTo(to->getOppositeAvailableExitTo(currentPath)); SpammyReport("passthrough node, continuing to next path\n"); |