fixed use of element / drawing buffer
authorHolger Schemel <holger.schemel@virtion.de>
Mon, 24 Jun 2024 22:31:32 +0000 (00:31 +0200)
committerHolger Schemel <holger.schemel@virtion.de>
Mon, 24 Jun 2024 22:31:32 +0000 (00:31 +0200)
src/game_bd/bd_cave.c

index 40d20f154c6ca240a0bb8d4ce47829f972d87ca9..6e474620bd9bd6fcad38365453133dbbcd70ea3e 100644 (file)
@@ -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;