From: Holger Schemel Date: Mon, 24 Jun 2024 22:31:32 +0000 (+0200) Subject: fixed use of element / drawing buffer X-Git-Tag: 4.4.0.0-test-3~26 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=0a0efc18fc895a4f737915a60f58226924082ad3;p=rocksndiamonds.git fixed use of element / drawing buffer --- diff --git a/src/game_bd/bd_cave.c b/src/game_bd/bd_cave.c index 40d20f15..6e474620 100644 --- a/src/game_bd/bd_cave.c +++ b/src/game_bd/bd_cave.c @@ -1559,7 +1559,7 @@ void gd_drawcave_game(const GdCave *cave, // special check needed when smooth game element movements selected in setup menu: // last element must either be player (before pushing) or pushable element (while pushing) // (extra check needed to prevent pushing animation when moving towards pushable element) - if (!use_bd_smooth_movements() || last_drawing_buffer[y][x] != O_SPACE) + if (!use_bd_smooth_movements() || last_element_buffer[y][x] != O_SPACE) { if (cave->last_direction == GD_MV_LEFT) map = O_PLAYER_PUSH_LEFT;