fixed explosion graphics for bomb and McDuffin for MM engine
authorHolger Schemel <info@artsoft.org>
Sat, 18 Feb 2023 09:07:43 +0000 (10:07 +0100)
committerHolger Schemel <info@artsoft.org>
Sat, 18 Feb 2023 09:07:43 +0000 (10:07 +0100)
src/game_mm/mm_game.c

index 267f4c5e106dc3b96ef89e4cedf1a0768910fc3a..c6256e46f6c31db01f5264fb4ccd20c9fc4d5ed6 100644 (file)
@@ -2676,7 +2676,10 @@ static void Explode_MM(int x, int y, int phase, int mode)
     Store2[x][y] = mode;
 
     Tile[x][y] = EL_EXPLODING_OPAQUE;
-    GfxElement[x][y] = center_element;
+
+    GfxElement[x][y] = (center_element == EL_BOMB_ACTIVE ? EL_BOMB :
+                       IS_MCDUFFIN(center_element) ? EL_MCDUFFIN :
+                       center_element);
 
     MovDir[x][y] = MovPos[x][y] = MovDelay[x][y] = 0;