added skipping certain game actions on game over in MM engine
authorHolger Schemel <info@artsoft.org>
Thu, 29 Dec 2022 00:31:32 +0000 (01:31 +0100)
committerHolger Schemel <info@artsoft.org>
Thu, 29 Dec 2022 00:31:46 +0000 (01:31 +0100)
src/game_mm/mm_game.c

index c3d573db93c59ff2430e378f4c7595246b49e1fe..a3c22be01a129c6764956c55dca15d229906cee5 100644 (file)
@@ -3174,6 +3174,10 @@ static void GameActions_MM_Ext(void)
     }
   }
 
+  // skip all following game actions if game is over
+  if (game_mm.game_over)
+    return;
+
   if (FrameReached(&energy_delay))
   {
     if (game_mm.energy_left > 0)