diff options
author | Treeki <treeki@gmail.com> | 2013-02-02 19:23:18 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2013-02-02 19:23:18 +0100 |
commit | ccb32da6b2bedc4a6cdbc0aeffde187076cfac8e (patch) | |
tree | 83c6bfd50a4d0159c57b88ffd92c226bc6e6d277 /src/koopatlas | |
parent | 510b3784f5f108151a64167a4a79686dba99efab (diff) | |
download | kamek-ccb32da6b2bedc4a6cdbc0aeffde187076cfac8e.tar.gz kamek-ccb32da6b2bedc4a6cdbc0aeffde187076cfac8e.zip |
starry skies warp unlock detection thing
Diffstat (limited to 'src/koopatlas')
-rw-r--r-- | src/koopatlas/pathmanager.cpp | 7 |
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); } |