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