stopped scanning laser after game was lost (MM engine)
authorHolger Schemel <info@artsoft.org>
Fri, 10 Mar 2017 14:25:53 +0000 (15:25 +0100)
committerHolger Schemel <info@artsoft.org>
Fri, 23 Mar 2018 22:21:10 +0000 (23:21 +0100)
src/game_mm/mm_game.c

index 8a7d381e44ebca3acbb941b3e4b2eb0c04d691b5..fbd23b43498a2120609cd6c3496920bffa3500ef 100644 (file)
@@ -571,6 +571,10 @@ void ScanLaser()
   int element;
   int end = 0, rf = laser.num_edges;
 
+  /* do not scan laser again after the game was lost for whatever reason */
+  if (game_mm.game_over)
+    return;
+
   laser.overloaded = FALSE;
   laser.stops_inside_element = FALSE;