From 10547cdd1dfb8b60766e04f26adc58fb3a31197b Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Wed, 28 Feb 2024 16:06:08 +0100 Subject: [PATCH] added saving BD style levels in R'n'D format as native BDCFF files --- src/game_bd/main_bd.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/game_bd/main_bd.c b/src/game_bd/main_bd.c index 3cda1ac5..da296229 100644 --- a/src/game_bd/main_bd.c +++ b/src/game_bd/main_bd.c @@ -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); } -- 2.34.1