From: Holger Schemel Date: Sat, 25 May 2024 23:08:13 +0000 (+0200) Subject: fixed graphical bug when snap-pushing with smooth movement in BD engine X-Git-Tag: 4.4.0.0-test-2~12 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=2e9241bfb5323455f99c46cade55fc225b5ce9ea;p=rocksndiamonds.git fixed graphical bug when snap-pushing with smooth movement in BD engine --- 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)