fixed drawing disabled fuse when redrawing level playfield (MM engine)
authorHolger Schemel <info@artsoft.org>
Thu, 11 May 2017 19:03:03 +0000 (21:03 +0200)
committerHolger Schemel <info@artsoft.org>
Fri, 23 Mar 2018 22:21:13 +0000 (23:21 +0100)
src/game_mm/mm_tools.c

index 8a9de52af4d253e5f5e06de13bb4a2ee7175ad20..93ab822122fb4a5acfa3a15fa98f4122ada429d0 100644 (file)
@@ -517,6 +517,11 @@ void DrawElement_MM(int x, int y, int element)
 #endif
   else if (element == EL_PACMAN)
     DrawLevelField_MM(x, y);
+  else if (element == EL_FUSE_ON &&
+          laser.fuse_off &&
+          laser.fuse_x == x &&
+          laser.fuse_y == y)
+    DrawGraphic_MM(x, y, IMG_MM_FUSE);
   else
     DrawGraphic_MM(x, y, el2gfx(element));
 }