Skip to content

Commit

Permalink
print proper level and music names for mapinfo CCMD
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Oct 1, 2023
1 parent 99fac23 commit a7258de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/console/c_cmds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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));
Expand All @@ -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);

Expand Down

0 comments on commit a7258de

Please sign in to comment.