mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 00:41:55 +00:00
- fixed parsing issues in secret hint system.
This commit is contained in:
parent
aab13addb7
commit
5aabde1712
1 changed files with 4 additions and 2 deletions
|
@ -90,7 +90,9 @@ CCMD(secret)
|
||||||
if (!foundsome)
|
if (!foundsome)
|
||||||
{
|
{
|
||||||
FString levelname;
|
FString levelname;
|
||||||
if (thislevel) levelname.Format("%s - %s", mapname, currentLevel->name.GetChars());
|
auto cc = currentLevel->name.GetChars();
|
||||||
|
if (*cc == '$') cc = GStrings[cc + 1];
|
||||||
|
if (thislevel) levelname.Format("%s - %s", mapname, cc);
|
||||||
else levelname = mapname;
|
else levelname = mapname;
|
||||||
Printf(TEXTCOLOR_YELLOW "%s\n", levelname.GetChars());
|
Printf(TEXTCOLOR_YELLOW "%s\n", levelname.GetChars());
|
||||||
size_t llen = levelname.Len();
|
size_t llen = levelname.Len();
|
||||||
|
@ -107,7 +109,7 @@ CCMD(secret)
|
||||||
if (readbuffer[0] != '[')
|
if (readbuffer[0] != '[')
|
||||||
{
|
{
|
||||||
linebuild += readbuffer;
|
linebuild += readbuffer;
|
||||||
if (linebuild.Len() < 1023 || linebuild[1022] == '\n')
|
if (linebuild.Len() < 10239 || linebuild[10238] == '\n')
|
||||||
{
|
{
|
||||||
// line complete so print it.
|
// line complete so print it.
|
||||||
linebuild.Substitute("\r", "");
|
linebuild.Substitute("\r", "");
|
||||||
|
|
Loading…
Reference in a new issue