From: Holger Schemel Date: Mon, 23 Sep 2024 17:33:35 +0000 (+0200) Subject: improved checking for smooth movement animation in BD engine X-Git-Tag: 4.4.0.0-test-4~204 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=eba9a83d8fc5969612cbb7b7b112f5af03c46fcc;p=rocksndiamonds.git improved checking for smooth movement animation in BD engine --- 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