From: Holger Schemel Date: Fri, 24 Mar 2023 09:59:46 +0000 (+0100) Subject: fixed bug with short delay in crumbling border elements around explosion X-Git-Tag: 4.3.5.3~21 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=23a83ab8d024e6f22729c1d72b39510b455669d6;p=rocksndiamonds.git fixed bug with short delay in crumbling border elements around explosion --- 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)