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:
AFADoomer 2020-09-10 22:23:26 -05:00 committed by Christoph Oelckers
parent b11298afd5
commit e9af7e7096

View file

@ -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)
{