From: Holger Schemel Date: Wed, 28 Feb 2024 15:06:08 +0000 (+0100) Subject: added saving BD style levels in R'n'D format as native BDCFF files X-Git-Tag: 4.4.0.0-test-1~266 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=10547cdd1dfb8b60766e04f26adc58fb3a31197b;p=rocksndiamonds.git added saving BD style levels in R'n'D format as native BDCFF files --- 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); }