added updating playfield for BD engine if drawing element has changed
authorHolger Schemel <holger.schemel@virtion.de>
Sat, 11 Jan 2025 19:16:11 +0000 (20:16 +0100)
committerHolger Schemel <holger.schemel@virtion.de>
Sat, 11 Jan 2025 19:16:14 +0000 (20:16 +0100)
src/game_bd/bd_graphics.c

index 2a9b22931f301d7ccd73c34d8b5ab1885524d5ce..342ee986b3175e70dd2d0ac3851650c05ddad44e 100644 (file)
@@ -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)