X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Ftools.c;fp=src%2Ftools.c;h=ebcb47305133d67876d167c04b9d604aa6e40ff8;hp=a3e5306835f7082e83a21f22c3dc053f13f5257d;hb=b0c3bb42e4a0baf41242190a2855c3623267899b;hpb=51da1cb28eb4d3d1383c2c0d89a51c28468fb413 diff --git a/src/tools.c b/src/tools.c index a3e53068..ebcb4730 100644 --- a/src/tools.c +++ b/src/tools.c @@ -3960,6 +3960,9 @@ void DrawLevelGraphicAnimationIfNeeded(int x, int y, int graphic) if (!IN_LEV_FIELD(x, y) || !IN_SCR_FIELD(sx, sy)) return; + if (Tile[x][y] == EL_EMPTY) + graphic = el2img(GfxElementEmpty[x][y]); + if (!IS_NEW_FRAME(GfxFrame[x][y], graphic)) return;