diff options
Diffstat (limited to 'src/creditsMgr.cpp')
-rw-r--r-- | src/creditsMgr.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/creditsMgr.cpp b/src/creditsMgr.cpp index 4f30bc4..e4dafda 100644 --- a/src/creditsMgr.cpp +++ b/src/creditsMgr.cpp @@ -564,7 +564,11 @@ void dCreditsMgr_c::theEnd() { GetTheEnd()->willShow = true; } void dCreditsMgr_c::exitStage() { - ExitStage(WORLD_MAP, 0x20000000, BEAT_LEVEL, CIRCLE_WIPE); + SaveBlock *save = GetSaveFile()->GetBlock(-1); + bool wasPreviouslyBeat = (save->bitfield & 2) != 0; + save->bitfield |= 2; + + ExitStage(WORLD_MAP, wasPreviouslyBeat ? 0 : 0x20000000, BEAT_LEVEL, CIRCLE_WIPE); } Vec2 dCreditsMgr_c::_vf70() { |