mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 22:11:43 +00:00
- fixed: The 'secret' CCMD used FStrings directly as printf parameters.
SVN r3024 (trunk)
This commit is contained in:
parent
d54ee47656
commit
092f53d875
1 changed files with 2 additions and 2 deletions
|
@ -1030,10 +1030,10 @@ CCMD(secret)
|
||||||
{
|
{
|
||||||
FString levelname;
|
FString levelname;
|
||||||
level_info_t *info = FindLevelInfo(mapname);
|
level_info_t *info = FindLevelInfo(mapname);
|
||||||
levelname.Format("%s - %s\n", mapname, info->LevelName);
|
levelname.Format("%s - %s\n", mapname, info->LevelName.GetChars());
|
||||||
size_t llen = levelname.Len() - 1;
|
size_t llen = levelname.Len() - 1;
|
||||||
for(size_t ii=0; ii<llen; ii++) levelname += '-';
|
for(size_t ii=0; ii<llen; ii++) levelname += '-';
|
||||||
Printf(TEXTCOLOR_YELLOW"%s\n", levelname);
|
Printf(TEXTCOLOR_YELLOW"%s\n", levelname.GetChars());
|
||||||
foundsome = true;
|
foundsome = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue