Skip to content

Commit

Permalink
- fixed localization support for intermission texts
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Oct 27, 2019
1 parent ae2f7dd commit 958b52d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/intermission/intermission_parse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,12 +332,18 @@ bool FIntermissionActionTextscreen::ParseKey(FScanner &sc)
else if (sc.Compare("Text"))
{
sc.MustGetToken('=');
TArray<FString> lines;
do
{
sc.MustGetToken(TK_StringConst);
mText << sc.String << '\n';
lines.Push(sc.String);
}
while (sc.CheckToken(','));
if (lines.Size() == 1 && lines[0][0] == '$')
mText = lines[0];
else
for (const FString& line : lines)
mText << line << '\n';
return true;
}
else if (sc.Compare("TextColor"))
Expand Down

0 comments on commit 958b52d

Please sign in to comment.