summaryrefslogtreecommitdiff
path: root/src/koopatlas/pathmanager.cpp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-09-15 17:48:38 +0200
committerTreeki <treeki@gmail.com>2012-09-15 17:48:38 +0200
commit69b2b83ac585121b6cc37ff8fdcddf9ebd5cd5ce (patch)
tree42d5f230af7150d7ab1f3e283eba2e10ea7904ca /src/koopatlas/pathmanager.cpp
parenta16adae746a5d4814a781f583d18dd79d3e7d43b (diff)
downloadkamek-69b2b83ac585121b6cc37ff8fdcddf9ebd5cd5ce.tar.gz
kamek-69b2b83ac585121b6cc37ff8fdcddf9ebd5cd5ce.zip
initial version of file select
Diffstat (limited to 'src/koopatlas/pathmanager.cpp')
-rw-r--r--src/koopatlas/pathmanager.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/koopatlas/pathmanager.cpp b/src/koopatlas/pathmanager.cpp
index ffc4dfd..49ee728 100644
--- a/src/koopatlas/pathmanager.cpp
+++ b/src/koopatlas/pathmanager.cpp
@@ -560,6 +560,13 @@ void dWMPathManager_c::moveThroughPath() {
SaveBlock *save = GetSaveFile()->GetBlock(-1);
save->current_path_node = pathLayer->findNodeID(to);
+ if (to->type == dKPNode_s::LEVEL) {
+ NWRWorld nWorld = NewerWorldForLevelID(to->levelNumber[0], to->levelNumber[1]);
+ if (nWorld != UNKNOWN_WORLD) {
+ save->currentNewerWorld = (u8)nWorld;
+ }
+ }
+
dWMHud_c::instance->showPointBar();
SpammyReport("Point bar shown\n");
} else {