X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame.c;h=9b890f49d94f0cbf49d1a2f146dc5b116e70abf8;hb=ea775c254b0a6270540af38a6288094e3a0b1944;hp=56f36518d9576cec0d8752c57ce8944bf373196d;hpb=2c91866598fc7ff9b6a6075c288a6974bfc11965;p=rocksndiamonds.git diff --git a/src/game.c b/src/game.c index 56f36518..9b890f49 100644 --- a/src/game.c +++ b/src/game.c @@ -10934,13 +10934,14 @@ static void HandleElementChange(int x, int y, int page) if (ChangeDelay[x][y] != 0) // continue element change { - if (change->can_change) - { - int graphic = el_act_dir2img(element, GfxAction[x][y], GfxDir[x][y]); + int graphic = el_act_dir2img(element, GfxAction[x][y], GfxDir[x][y]); - if (IS_ANIMATED(graphic)) - DrawLevelGraphicAnimationIfNeeded(x, y, graphic); + // also needed if CE can not change, but has CE delay with CE action + if (IS_ANIMATED(graphic)) + DrawLevelGraphicAnimationIfNeeded(x, y, graphic); + if (change->can_change) + { if (change->change_function) change->change_function(x, y); }