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/koopatlas | |
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/koopatlas/pathmanager.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/koopatlas/pathmanager.cpp b/src/koopatlas/pathmanager.cpp index 162084d..ad39c69 100644 --- a/src/koopatlas/pathmanager.cpp +++ b/src/koopatlas/pathmanager.cpp @@ -695,6 +695,8 @@ bool dWMPathManager_c::doingThings() { } void dWMPathManager_c::execute() { + dScKoopatlas_c *wm = dScKoopatlas_c::instance; + if (isEnteringLevel) { if (levelStartWait > 0) { levelStartWait--; @@ -724,7 +726,8 @@ void dWMPathManager_c::execute() { waitAfterInitialPlayerAnim = 38; nw4r::snd::SoundHandle something; - PlaySoundWithFunctionB4(SoundRelatedClass, &something, SE_VOC_MA_CS_JUMP, 1); + if (!wm->isEndingScene) + PlaySoundWithFunctionB4(SoundRelatedClass, &something, SE_VOC_MA_CS_JUMP, 1); } } } @@ -735,7 +738,7 @@ void dWMPathManager_c::execute() { waitAfterInitialPlayerAnim--; if (waitAfterInitialPlayerAnim == 0) daWMPlayer_c::instance->startAnimation(wait_select, 1.0f, 0.0f, 0.0f); - if (mustPlayAfterWinAnim && (waitAfterInitialPlayerAnim == 9)) { + if (mustPlayAfterWinAnim && (waitAfterInitialPlayerAnim == 9) && !wm->isEndingScene) { nw4r::snd::SoundHandle something; PlaySoundWithFunctionB4(SoundRelatedClass, &something, SE_PLY_LAND_ROCK, 1); } |