Don't stop music when game is complete.

This commit is contained in:
Steve 2018-03-14 22:41:55 +00:00
parent e585281716
commit 370adf36b6
1 changed files with 5 additions and 4 deletions

View File

@ -359,8 +359,11 @@ static void doWorldInProgress(void)
world.missionCompleteTimer = FPS * 3; world.missionCompleteTimer = FPS * 3;
if (world.state != WS_GAME_COMPLETE)
{
stopMusic(); stopMusic();
} }
}
if (isControl(CONTROL_PAUSE)) if (isControl(CONTROL_PAUSE))
{ {
@ -547,9 +550,7 @@ static void doWorldComplete(void)
static void doGameComplete(void) static void doGameComplete(void)
{ {
world.missionCompleteTimer--; if (--world.missionCompleteTimer <= 0)
if (world.missionCompleteTimer <= 0)
{ {
initEnding(); initEnding();
} }