From: Holger Schemel Date: Fri, 10 Mar 2017 14:25:53 +0000 (+0100) Subject: stopped scanning laser after game was lost (MM engine) X-Git-Tag: 4.1.0.0~169 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=6689304a6b2e10506949457dae724cb94f1ba71f;p=rocksndiamonds.git stopped scanning laser after game was lost (MM engine) --- diff --git a/src/game_mm/mm_game.c b/src/game_mm/mm_game.c index 8a7d381e..fbd23b43 100644 --- a/src/game_mm/mm_game.c +++ b/src/game_mm/mm_game.c @@ -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;