From 2e9241bfb5323455f99c46cade55fc225b5ce9ea Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sun, 26 May 2024 01:08:13 +0200 Subject: [PATCH 1/1] fixed graphical bug when snap-pushing with smooth movement in BD engine --- src/game_bd/bd_graphics.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/game_bd/bd_graphics.c b/src/game_bd/bd_graphics.c index fb702375..4687ebfb 100644 --- a/src/game_bd/bd_graphics.c +++ b/src/game_bd/bd_graphics.c @@ -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) -- 2.34.1