From a1206b26bfcc7ec67b23cb91171ef20811a2a886 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Tue, 21 Mar 2023 05:48:56 +0100 Subject: [PATCH] fixed playing "game.losing" sound also when playing tape --- src/game.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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; -- 2.34.1