From: Holger Schemel Date: Sat, 11 May 2024 08:31:02 +0000 (+0200) Subject: removed showing level in cave names for BDCFF cave sets without levels X-Git-Tag: 4.4.0.0-test-2~29 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=e3b1c426fabca68434a3f71d4b08f4ce759dd564;p=rocksndiamonds.git removed showing level in cave names for BDCFF cave sets without levels --- diff --git a/src/files.c b/src/files.c index 7d0194f2..ad068631 100644 --- a/src/files.c +++ b/src/files.c @@ -4645,7 +4645,11 @@ static void CopyNativeLevel_BD_to_RND(struct LevelInfo *level) // level name char *cave_name_latin1 = getLatin1FromUTF8(cave->name); - char *cave_name_final = getStringPrint("%s / %d", cave_name_latin1, bd_level_nr + 1); + char *cave_name_final; + if (gd_caveset_has_levels()) + cave_name_final = getStringPrint("%s / %d", cave_name_latin1, bd_level_nr + 1); + else + cave_name_final = getStringCopy(cave_name_latin1); strncpy(level->name, cave_name_final, MAX_LEVEL_NAME_LEN); level->name[MAX_LEVEL_NAME_LEN] = '\0';