fixed acid animation for elements falling/moving into (GFX engine change)
[rocksndiamonds.git] / src / tools.c
index 2ca18cf6b5f773e117aa6e0ebbfaf0fc010479f3..133a8265d6eee5631b1db356305c27e24218e554 100644 (file)
@@ -2322,6 +2322,10 @@ void DrawScreenField(int x, int y)
       int newly = ly + (dir == MV_UP   ? -1 : dir == MV_DOWN  ? +1 : 0);
 
       DrawLevelElementThruMask(newlx, newly, EL_ACID);
       int newly = ly + (dir == MV_UP   ? -1 : dir == MV_DOWN  ? +1 : 0);
 
       DrawLevelElementThruMask(newlx, newly, EL_ACID);
+
+      // prevent target field from being drawn again (but without masking)
+      // (this would happen if target field is scanned after moving element)
+      Stop[newlx][newly] = TRUE;
     }
   }
   else if (IS_BLOCKED(lx, ly))
     }
   }
   else if (IS_BLOCKED(lx, ly))