summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2013-02-02 19:23:18 +0100
committerTreeki <treeki@gmail.com>2013-02-02 19:23:18 +0100
commitccb32da6b2bedc4a6cdbc0aeffde187076cfac8e (patch)
tree83c6bfd50a4d0159c57b88ffd92c226bc6e6d277 /src
parent510b3784f5f108151a64167a4a79686dba99efab (diff)
downloadkamek-ccb32da6b2bedc4a6cdbc0aeffde187076cfac8e.tar.gz
kamek-ccb32da6b2bedc4a6cdbc0aeffde187076cfac8e.zip
starry skies warp unlock detection thing
Diffstat (limited to 'src')
-rw-r--r--src/koopatlas/pathmanager.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/koopatlas/pathmanager.cpp b/src/koopatlas/pathmanager.cpp
index 435c6f1..169668b 100644
--- a/src/koopatlas/pathmanager.cpp
+++ b/src/koopatlas/pathmanager.cpp
@@ -797,7 +797,12 @@ void dWMPathManager_c::moveThroughPath(int pressedDir) {
if (world->worldID > 0) {
dLevelInfo_c *linfo = &dLevelInfo_c::s_info;
- dLevelInfo_c::entry_s *lastLevel = linfo->searchByDisplayNum(world->worldID-1, lastLevelIDs[world->worldID-1]);
+ dLevelInfo_c::entry_s *lastLevel;
+ if (world->worldID != 7)
+ lastLevel = linfo->searchByDisplayNum(world->worldID-1, lastLevelIDs[world->worldID-1]);
+ else
+ lastLevel = linfo->searchByDisplayNum(7, 3);
+
if (lastLevel) {
wzHack = !(save->GetLevelCondition(lastLevel->worldSlot,lastLevel->levelSlot) & COND_NORMAL);
}