From: Holger Schemel Date: Fri, 8 Nov 2024 19:27:30 +0000 (+0100) Subject: added setting pointer to cave set for native BD levels X-Git-Tag: 4.4.0.0-test-4~75 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=1186ae9cc7ebb050a18fccc8332002acf4798579;p=rocksndiamonds.git added setting pointer to cave set for native BD levels --- diff --git a/src/game_bd/export_bd.h b/src/game_bd/export_bd.h index 5bf81e61..e79e9789 100644 --- a/src/game_bd/export_bd.h +++ b/src/game_bd/export_bd.h @@ -17,6 +17,7 @@ // ============================================================================ #include "bd_cave.h" +#include "bd_caveset.h" #include "bd_elements.h" #include "bd_gameplay.h" @@ -57,6 +58,7 @@ struct GameInfo_BD struct LevelInfo_BD { + GdCavesetData *caveset; GdCave *cave; GdReplay *replay; diff --git a/src/game_bd/main_bd.c b/src/game_bd/main_bd.c index 9508624f..6a1aab9a 100644 --- a/src/game_bd/main_bd.c +++ b/src/game_bd/main_bd.c @@ -81,6 +81,7 @@ void setLevelInfoToDefaults_BD_Ext(int width, int height) cave->selectable = TRUE; cave->intermission = FALSE; + native_bd_level.caveset = NULL; native_bd_level.cave = cave; native_bd_level.replay = NULL; @@ -156,6 +157,7 @@ boolean LoadNativeLevel_BD(char *filename, int level_pos, boolean level_info_onl // set better initial cave speed (to set better native replay tape length) set_initial_cave_speed(native_bd_level.cave); + native_bd_level.caveset = gd_caveset_data; native_bd_level.loaded_from_caveset = TRUE; // check if this cave has any replays