added saving BD style levels in R'n'D format as native BDCFF files
authorHolger Schemel <info@artsoft.org>
Wed, 28 Feb 2024 15:06:08 +0000 (16:06 +0100)
committerHolger Schemel <info@artsoft.org>
Wed, 28 Feb 2024 15:06:38 +0000 (16:06 +0100)
src/game_bd/main_bd.c

index 3cda1ac5cea5655f2ddcc84a4b95a2f83bbf04ec..da296229a6652392b2ecd6f56ea05f05b49e304a 100644 (file)
@@ -156,6 +156,11 @@ boolean LoadNativeLevel_BD(char *filename, int level_pos, boolean level_info_onl
 
 boolean SaveNativeLevel_BD(char *filename)
 {
+  GdCave *cave = gd_cave_new_from_cave(native_bd_level.cave);
+
+  gd_caveset_clear();
+  gd_caveset = list_append(gd_caveset, cave);
+
   return gd_caveset_save_to_file(filename);
 }