mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 04:22:34 +00:00
Add string table lookup to SECRETS lump handling
- If the hint text portion of a STRINGS lump entry begins with a '$', the value is treated as a string table lookup Allows SECRETS strings to be translated via LANGUAGE lump. Reference: https://forum.zdoom.org/viewtopic.php?f=15&t=69827
This commit is contained in:
parent
b11298afd5
commit
e9af7e7096
1 changed files with 1 additions and 1 deletions
|
@ -1112,7 +1112,7 @@ static void PrintSecretString(const char *string, bool thislevel)
|
|||
else colstr = TEXTCOLOR_GREEN;
|
||||
}
|
||||
}
|
||||
auto brok = V_BreakLines(CurrentConsoleFont, twod->GetWidth()*95/100, string);
|
||||
auto brok = V_BreakLines(CurrentConsoleFont, twod->GetWidth()*95/100, *string == '$' ? GStrings(++string) : string);
|
||||
|
||||
for (auto &line : brok)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue