Skip to content

Commit

Permalink
Add string table lookup to SECRETS lump handling
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
AFADoomer authored and coelckers committed Sep 11, 2020
1 parent b11298a commit e9af7e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/console/c_cmds.cpp
Expand Up @@ -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)
{
Expand Down

0 comments on commit e9af7e7

Please sign in to comment.