X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftools.c;h=ebcb47305133d67876d167c04b9d604aa6e40ff8;hb=cd8ffa5913dbad16024c5cf4232610c69dc7fac4;hp=bf79b048d344368bf064bbc992bf98a18c4cf301;hpb=207dd0ba7951139a27a87a091c7eb98c395f3c70;p=rocksndiamonds.git diff --git a/src/tools.c b/src/tools.c index bf79b048..ebcb4730 100644 --- a/src/tools.c +++ b/src/tools.c @@ -1996,6 +1996,9 @@ void DrawScreenElementExt(int x, int y, int dx, int dy, int element, int graphic; int frame; + if (element == EL_EMPTY) + element = GfxElementEmpty[lx][ly]; + if (IN_LEV_FIELD(lx, ly)) { SetRandomAnimationValue(lx, ly); @@ -3957,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;