From ccb32da6b2bedc4a6cdbc0aeffde187076cfac8e Mon Sep 17 00:00:00 2001 From: Treeki Date: Sat, 2 Feb 2013 19:23:18 +0100 Subject: starry skies warp unlock detection thing --- src/koopatlas/pathmanager.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') 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); } -- cgit v1.2.3