summaryrefslogtreecommitdiff
path: root/src/palaceDude.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/palaceDude.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/palaceDude.cpp b/src/palaceDude.cpp
index b685cd2..4714e79 100644
--- a/src/palaceDude.cpp
+++ b/src/palaceDude.cpp
@@ -52,9 +52,12 @@ int dPalaceDude_c::onExecute() {
// OSReport("Palace Dude is activated, %d\n", dMsgBoxManager_c::instance->visible);
if (!dMsgBoxManager_c::instance->visible) {
// OSReport("Exiting\n");
- if (settings & 0xF000000)
+ u32 wmsettings = 0;
+ if (settings & 0xF000000) {
SaveGame(0, false);
- ExitStage(WORLD_MAP, 0x80000000, BEAT_LEVEL, MARIO_WIPE);
+ wmsettings = 0x80000000;
+ }
+ ExitStage(WORLD_MAP, wmsettings, BEAT_LEVEL, MARIO_WIPE);
hasExitedStage = true;
}
}