From: Holger Schemel Date: Sat, 11 Jan 2025 19:16:11 +0000 (+0100) Subject: added updating playfield for BD engine if drawing element has changed X-Git-Tag: 4.4.0.1~22 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=c0c9ad0c3e44f08bac3c74da878b86d8c2015848;p=rocksndiamonds.git added updating playfield for BD engine if drawing element has changed --- diff --git a/src/game_bd/bd_graphics.c b/src/game_bd/bd_graphics.c index 2a9b2293..342ee986 100644 --- a/src/game_bd/bd_graphics.c +++ b/src/game_bd/bd_graphics.c @@ -981,6 +981,7 @@ int gd_drawcave(Bitmap *dest, GdGame *game, boolean force_redraw) if (redraw_all || el_is_animated(game->drawing_buffer[y][x]) || el_is_crumbled(game->drawing_buffer[y][x]) || + game->drawing_buffer[y][x] != game->last_drawing_buffer[y][x] || game->gfx_buffer[y][x] & GD_REDRAW || game->dir_buffer_from[y][x] != GD_MV_STILL || game->dir_buffer_to[y][x] != GD_MV_STILL)