From c42b926668135c5a4222652e1c53e9eaec290a04 Mon Sep 17 00:00:00 2001 From: Treeki Date: Tue, 30 Apr 2013 23:51:34 +0200 Subject: fix a couple of shitbugs --- src/koopatlas/pathmanager.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/koopatlas') diff --git a/src/koopatlas/pathmanager.cpp b/src/koopatlas/pathmanager.cpp index dd08a3a..19762c1 100644 --- a/src/koopatlas/pathmanager.cpp +++ b/src/koopatlas/pathmanager.cpp @@ -41,6 +41,7 @@ void dWMPathManager_c::setup() { reverseThroughPath = false; shouldRequestSave = ((wm->settings & 0x80000) != 0); + checkedForMoveAfterEndLevel = ((wm->settings & 0x40000) != 0); pathLayer = wm->mapData.pathLayer; @@ -1421,6 +1422,7 @@ void dWMPathManager_c::moveThroughPath(int pressedDir) { dScKoopatlas_c::instance->keepMusicPlaying = true; ActivateWipe(to->transition); u32 saveFlag = (shouldRequestSave ? 0x80000 : 0); + saveFlag |= (checkedForMoveAfterEndLevel ? 0x40000 : 0); DoSceneChange(WORLD_MAP, 0x10000000 | (to->foreignID << 20) | saveFlag, 0); } else if (reallyStop) { -- cgit v1.2.3