added basic support for additional empty space elements in game engine
[rocksndiamonds.git] / src / tools.c
index bf79b048d344368bf064bbc992bf98a18c4cf301..a3e5306835f7082e83a21f22c3dc053f13f5257d 100644 (file)
@@ -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);