From cbcb36ac6129c42b9e719dba1505fdac07881cc2 Mon Sep 17 00:00:00 2001 From: BLooperZ Date: Tue, 31 Dec 2019 22:19:02 +0200 Subject: SCUMM: add more comments --- engines/scumm/string.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines/scumm') diff --git a/engines/scumm/string.cpp b/engines/scumm/string.cpp index c2a07fa54b..1c23223605 100644 --- a/engines/scumm/string.cpp +++ b/engines/scumm/string.cpp @@ -503,7 +503,9 @@ void ScummEngine::fakeBidiString(char *ltext, bool ignoreVerb) { int sthead = 0; char last = '\0'; for (int j = 0; j < ipos; j++) { + // Reverse string on current line (between start and ipos). char *curr = text + start + ipos - j - 1; + // Special cases to preserve original ordering (numbers). if (Common::isDigit(*curr) || (*curr == ',' && j + 1 < ipos && Common::isDigit(*(curr - 1)) && Common::isDigit(last)) || (*curr == '-' && (j + 1 == ipos || Common::isSpace(*(curr - 1))) && Common::isDigit(last))) { -- cgit v1.2.3