From: Holger Schemel Date: Tue, 21 Mar 2023 04:48:56 +0000 (+0100) Subject: fixed playing "game.losing" sound also when playing tape X-Git-Tag: 4.3.5.3~35 X-Git-Url: https://git.artsoft.org/rocksndiamonds.git/?a=commitdiff_plain;h=a1206b26bfcc7ec67b23cb91171ef20811a2a886;p=rocksndiamonds.git fixed playing "game.losing" sound also when playing tape --- diff --git a/src/game.c b/src/game.c index 1cbea93f..ae65ccd9 100644 --- a/src/game.c +++ b/src/game.c @@ -15685,14 +15685,6 @@ void CheckGameOver(void) int game_over_delay_value = 50; boolean game_over = checkGameFailed(); - // do not handle game over if request dialog is already active - if (game.request_active) - return; - - // do not ask to play again if game was never actually played - if (!game.GamePlayed) - return; - if (!game_over) { last_game_over = FALSE; @@ -15711,6 +15703,14 @@ void CheckGameOver(void) return; } + // do not handle game over if request dialog is already active + if (game.request_active) + return; + + // do not ask to play again if game was never actually played + if (!game.GamePlayed) + return; + // do not ask to play again if this was disabled in setup menu if (!setup.ask_on_game_over) return;