SCI: sierra sci reacts on 0xD and 0xA to end a line. We only reacted on 0xA and ignored 0xD before (fixes subtitles in multilingual games, because the official subtitle separator is 0xD'----'0xD)

svn-id: r48699
This commit is contained in:
Martin Kiewitz 2010-04-18 12:09:22 +00:00
parent f68dfd61de
commit 2590fd8c2a

View File

@ -179,9 +179,9 @@ int16 GfxText16::GetLongest(const char *text, int16 maxWidth, GuiResourceId orgF
break;
case 0xD:
curCharCount++;
continue;
// Check, if 0xA is following, if so include it as well
if ((*(unsigned char *)text) == 0xA)
curCharCount++;
case 0xA:
curCharCount++;
case 0: