diff --git a/src/c_cmds.cpp b/src/c_cmds.cpp index 339d56740..56a9bcf36 100644 --- a/src/c_cmds.cpp +++ b/src/c_cmds.cpp @@ -1088,7 +1088,8 @@ CCMD(secret) { FString levelname; level_info_t *info = FindLevelInfo(mapname); - levelname.Format("%s - %s\n", mapname, info->LevelName.GetChars()); + const char *ln = !(info->flags & LEVEL_LOOKUPLEVELNAME)? info->LevelName.GetChars() : GStrings[info->LevelName.GetChars()]; + levelname.Format("%s - %s\n", mapname, ln); size_t llen = levelname.Len() - 1; for(size_t ii=0; ii