projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cc87512
)
fixed playing "game.losing" sound also when playing tape
author
Holger Schemel
<info@artsoft.org>
Tue, 21 Mar 2023 04:48:56 +0000
(
05:48
+0100)
committer
Holger Schemel
<info@artsoft.org>
Tue, 21 Mar 2023 04:49:32 +0000
(
05:49
+0100)
src/game.c
patch
|
blob
|
history
diff --git
a/src/game.c
b/src/game.c
index 1cbea93f65185b803d2d0c6087be03a9227e3c9b..ae65ccd9bae2cf8bc6516ae4767282fb60cd2c14 100644
(file)
--- 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();
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;
if (!game_over)
{
last_game_over = FALSE;
@@
-15711,6
+15703,14
@@
void CheckGameOver(void)
return;
}
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;
// do not ask to play again if this was disabled in setup menu
if (!setup.ask_on_game_over)
return;