From a72adb0be3e9fb9cba32662d9c62a9118d9cdb72 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sun, 14 Apr 2024 20:15:40 +0200 Subject: [PATCH] fixed drawing runtime elements in native BD engine --- src/game_bd/bd_cave.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game_bd/bd_cave.c b/src/game_bd/bd_cave.c index 8add2cca..a115cb00 100644 --- a/src/game_bd/bd_cave.c +++ b/src/game_bd/bd_cave.c @@ -1321,8 +1321,8 @@ void gd_drawcave_game(const GdCave *cave, int **element_buffer, int **gfx_buffer { static int player_blinking = 0; static int player_tapping = 0; - int elemmapping[O_MAX]; - int elemdrawing[O_MAX]; + int elemmapping[O_MAX_ALL]; + int elemdrawing[O_MAX_ALL]; int x, y, map, draw; if (cave->last_direction) @@ -1346,7 +1346,7 @@ void gd_drawcave_game(const GdCave *cave, int **element_buffer, int **gfx_buffer } } - for (x = 0; x < O_MAX; x++) + for (x = 0; x < O_MAX_ALL; x++) { elemmapping[x] = x; elemdrawing[x] = gd_elements[x].image_game; -- 2.34.1