From a7258de82e00ca968c8a79859c29e0a1e47ec394 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 1 Oct 2023 23:38:14 +0200 Subject: [PATCH] print proper level and music names for mapinfo CCMD --- src/console/c_cmds.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/console/c_cmds.cpp b/src/console/c_cmds.cpp index 0d8be2dd3c..706e6ec757 100644 --- a/src/console/c_cmds.cpp +++ b/src/console/c_cmds.cpp @@ -1110,7 +1110,7 @@ CCMD(secret) { FString levelname; level_info_t *info = FindLevelInfo(mapname); - const char *ln = !(info->flags & LEVEL_LOOKUPLEVELNAME)? info->LevelName.GetChars() : GStrings[info->LevelName.GetChars()]; + const char* ln = info->LookupLevelName(); levelname.Format("%s - %s", mapname, ln); Printf(TEXTCOLOR_YELLOW "%s\n", levelname.GetChars()); size_t llen = levelname.Len(); @@ -1307,7 +1307,7 @@ CCMD (mapinfo) Printf("[ Map Info For: '%s' ]\n\n", myLevel->MapName.GetChars()); if (myLevel->LevelName.IsNotEmpty()) - Printf(" LevelName: %s\n", testlocalised(myLevel->LevelName)); + Printf(" LevelName: %s\n", myLevel->LookupLevelName()); if (myLevel->AuthorName.IsNotEmpty()) Printf(" AuthorName: %s\n", testlocalised(myLevel->AuthorName)); @@ -1322,7 +1322,7 @@ CCMD (mapinfo) Printf(" SecretNext: %s\n", myLevel->NextSecretMap.GetChars()); if (myLevel->Music.IsNotEmpty()) - Printf(" Music: %s\n", testlocalised(myLevel->Music)); + Printf(" Music: %s%s\n", myLevel->Music[0] == '$'? "D_" : "", testlocalised(myLevel->Music)); Printf(" PixelStretch: %f\n", myLevel->pixelstretch);