diff options
author | Treeki <treeki@gmail.com> | 2013-04-09 22:27:45 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2013-04-09 22:27:45 +0200 |
commit | 790e76d3731c98c59dc28a1a2b918ecdeb24bdde (patch) | |
tree | f423238349c89835168f257f2b0134892a795235 /src/creditsMgr.cpp | |
parent | 24cd30d1451222d4bd524d165a7470ec9c9e7eec (diff) | |
download | kamek-790e76d3731c98c59dc28a1a2b918ecdeb24bdde.tar.gz kamek-790e76d3731c98c59dc28a1a2b918ecdeb24bdde.zip |
only do the final part of the ending sequence once; some other minor fixes
Diffstat (limited to '')
-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() { |