From ab737220f075311b98c35067ccc2fe4652c69243 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 3 Jun 2012 15:59:44 +0000 Subject: [PATCH] - fixed: The secret hint code did not resolve level names coming from the string table. SVN r3676 (trunk) --- src/c_cmds.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/c_cmds.cpp b/src/c_cmds.cpp index 339d567409..56a9bcf36a 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