- fixed: The secret hint code did not resolve level names coming from the string table.

SVN r3676 (trunk)
This commit is contained in:
Christoph Oelckers 2012-06-03 15:59:44 +00:00
parent 36d348dba6
commit ab737220f0

View file

@ -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<llen; ii++) levelname += '-';
Printf(TEXTCOLOR_YELLOW"%s\n", levelname.GetChars());