From: Holger Schemel Date: Sun, 14 Apr 2024 18:15:40 +0000 (+0200) Subject: fixed drawing runtime elements in native BD engine X-Git-Tag: 4.4.0.0-test-1~72 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=a72adb0be3e9fb9cba32662d9c62a9118d9cdb72;p=rocksndiamonds.git fixed drawing runtime elements in native BD engine --- 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;