added support for graphic animations of empty space elements
[rocksndiamonds.git] / src / game.c
index 491d4e9b541be0f3ca1ab48423f3ac1e16965719..e906d2362d832236cd08b141d0f48dd7a06a8fbe 100644 (file)
@@ -12299,6 +12299,9 @@ void GameActions_RND(void)
     graphic = el_act_dir2img(element, GfxAction[x][y], GfxDir[x][y]);
     last_gfx_frame = GfxFrame[x][y];
 
+    if (element == EL_EMPTY)
+      graphic = el2img(GfxElementEmpty[x][y]);
+
     ResetGfxFrame(x, y);
 
     if (GfxFrame[x][y] != last_gfx_frame && !Stop[x][y])