added support for graphic animations of empty space elements
[rocksndiamonds.git] / src / tools.c
index a3e5306835f7082e83a21f22c3dc053f13f5257d..ebcb47305133d67876d167c04b9d604aa6e40ff8 100644 (file)
@@ -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;