From: Holger Schemel Date: Thu, 12 Jan 2023 08:54:39 +0000 (+0100) Subject: added not drawing or scanning laser if fuse is off in MM engine X-Git-Tag: 4.3.5.0~42 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=a4248791dc5c536bd346033d20e1f41f27ecd945;p=rocksndiamonds.git added not drawing or scanning laser if fuse is off in MM engine --- diff --git a/src/game_mm/mm_game.c b/src/game_mm/mm_game.c index daec6fb7..571c9094 100644 --- a/src/game_mm/mm_game.c +++ b/src/game_mm/mm_game.c @@ -948,6 +948,10 @@ void ScanLaser(void) if (game_mm.game_over) return; + // do not scan laser if fuse is off + if (laser.fuse_off) + return; + DeactivateLaserTargetElement(); laser.overloaded = FALSE; @@ -1325,6 +1329,10 @@ static void DrawLaserExt(int start_edge, int num_edges, int mode) void DrawLaser(int start_edge, int mode) { + // do not draw laser if fuse is off + if (laser.fuse_off && mode == DL_LASER_ENABLED) + return; + if (mode == DL_LASER_DISABLED) DeactivateLaserTargetElement();