fixed graphical bug when snap-pushing with smooth movement in BD engine
authorHolger Schemel <holger.schemel@virtion.de>
Sat, 25 May 2024 23:08:13 +0000 (01:08 +0200)
committerHolger Schemel <holger.schemel@virtion.de>
Sat, 25 May 2024 23:12:35 +0000 (01:12 +0200)
src/game_bd/bd_graphics.c

index fb702375886ec86b17faa1914a0706d97ed019cd..4687ebfbe7e7d9f5aaedf26c25a25f080e67c80c 100644 (file)
@@ -698,6 +698,11 @@ static void gd_drawcave_tile(Bitmap *dest, GdGame *game, int x, int y, boolean d
                            old_x <= cave->x2 &&
                            old_y >= cave->y1 &&
                            old_y <= cave->y2);
+
+  // never treat empty space as "moving" (may happen if player is snap-pushing element)
+  if (tile_from == O_SPACE)
+    old_is_moving = FALSE;
+
   if (old_is_visible)
   {
     if (!old_is_moving && !old_is_player)