fixed asking to play again in case of tape replaying in MM engine
authorHolger Schemel <info@artsoft.org>
Fri, 24 Feb 2023 19:19:14 +0000 (20:19 +0100)
committerHolger Schemel <info@artsoft.org>
Fri, 24 Feb 2023 19:19:14 +0000 (20:19 +0100)
src/game_mm/mm_game.c

index d5ad417d31f126874f754a19b97a39e53926f554..4b864e6937ace2acfb7f8fffe0d073fffca2ae42 100644 (file)
@@ -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?" :