From eba9a83d8fc5969612cbb7b7b112f5af03c46fcc Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Mon, 23 Sep 2024 19:33:35 +0200 Subject: [PATCH] improved checking for smooth movement animation in BD engine --- src/game_bd/bd_graphics.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game_bd/bd_graphics.c b/src/game_bd/bd_graphics.c index bfa5b9ad..5814fcc9 100644 --- a/src/game_bd/bd_graphics.c +++ b/src/game_bd/bd_graphics.c @@ -746,9 +746,9 @@ static void gd_drawcave_tile(Bitmap *dest, GdGame *game, int x, int y, boolean d // do not use smooth movement animation for game elements that cannot move smoothly // (but handle special case of player digging or snapping diggable element, like sand) - if (!el_smooth_movable(tile_from) && - !el_smooth_movable(tile_to) && - !el_diggable(tile_last)) + if (!(is_moving_from && el_smooth_movable(tile_from)) && + !(is_moving_to && el_smooth_movable(tile_to)) && + !(is_moving_to && el_diggable(tile_last))) use_smooth_movements = FALSE; #if DO_GFX_SANITY_CHECK -- 2.34.1