projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f31fb3
)
fixed asking to play again in case of tape replaying in MM engine
author
Holger Schemel
<info@artsoft.org>
Fri, 24 Feb 2023 19:19:14 +0000
(20:19 +0100)
committer
Holger Schemel
<info@artsoft.org>
Fri, 24 Feb 2023 19:19:14 +0000
(20:19 +0100)
src/game_mm/mm_game.c
patch
|
blob
|
history
diff --git
a/src/game_mm/mm_game.c
b/src/game_mm/mm_game.c
index d5ad417d31f126874f754a19b97a39e53926f554..4b864e6937ace2acfb7f8fffe0d073fffca2ae42 100644
(file)
--- a/
src/game_mm/mm_game.c
+++ b/
src/game_mm/mm_game.c
@@
-809,6
+809,10
@@
static void GameOver_MM(int game_over_cause)
game_mm.game_over = TRUE;
game_mm.game_over_cause = game_over_cause;
+ // do not ask to play again if game was never actually played
+ if (!game.GamePlayed)
+ return;
+
if (setup.ask_on_game_over)
game.restart_game_message = (game_over_cause == GAME_OVER_BOMB ?
"Bomb killed Mc Duffin! Play it again?" :