From 23a83ab8d024e6f22729c1d72b39510b455669d6 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 24 Mar 2023 10:59:46 +0100 Subject: [PATCH] fixed bug with short delay in crumbling border elements around explosion --- src/game.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/game.c b/src/game.c index ecc1cea0..a0b51c75 100644 --- a/src/game.c +++ b/src/game.c @@ -5836,9 +5836,6 @@ static void Explode(int ex, int ey, int phase, int mode) int last_phase; int border_element; - // !!! eliminate this variable !!! - int delay = (game.emulation == EMU_SUPAPLEX ? 3 : 2); - if (game.explosions_delayed) { ExplodeField[ex][ey] = mode; @@ -6119,7 +6116,7 @@ static void Explode(int ex, int ey, int phase, int mode) int graphic = el_act2img(GfxElement[x][y], ACTION_EXPLODING); int frame = getGraphicAnimationFrameXY(graphic, x, y); - if (phase == delay) + if (phase == 1) TEST_DrawLevelFieldCrumbled(x, y); if (IS_WALKABLE_OVER(Back[x][y]) && Back[x][y] != EL_EMPTY) -- 2.34.1