From e9af7e7096196a5d88659617d99f8832b6b45f34 Mon Sep 17 00:00:00 2001 From: AFADoomer Date: Thu, 10 Sep 2020 22:23:26 -0500 Subject: [PATCH] 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 --- src/console/c_cmds.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/console/c_cmds.cpp b/src/console/c_cmds.cpp index 51664da4c3..6f36599de4 100644 --- a/src/console/c_cmds.cpp +++ b/src/console/c_cmds.cpp @@ -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) {