From: Holger Schemel Date: Thu, 12 Jan 2023 08:48:44 +0000 (+0100) Subject: added deactivating laser target element when disabling laser in MM engine X-Git-Tag: 4.3.5.0~43 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=21938b7ba34f3677e5f7fa11800148d6671127a3;p=rocksndiamonds.git added deactivating laser target element when disabling laser in MM engine --- diff --git a/src/game_mm/mm_game.c b/src/game_mm/mm_game.c index c9712c9b..daec6fb7 100644 --- a/src/game_mm/mm_game.c +++ b/src/game_mm/mm_game.c @@ -1325,6 +1325,9 @@ static void DrawLaserExt(int start_edge, int num_edges, int mode) void DrawLaser(int start_edge, int mode) { + if (mode == DL_LASER_DISABLED) + DeactivateLaserTargetElement(); + if (laser.num_edges - start_edge < 0) { Warn("DrawLaser: laser.num_edges - start_edge < 0");