aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/scumm/string.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/scumm/string.cpp b/engines/scumm/string.cpp
index 11b0cfbaf2..a71b65fa54 100644
--- a/engines/scumm/string.cpp
+++ b/engines/scumm/string.cpp
@@ -496,9 +496,9 @@ void ScummEngine::fakeBidiString(char *ltext, bool ignoreVerb) {
char last = '\0';
for (int j = 0; j < ipos; j++) {
char *curr = text + start + ipos - j - 1;
- 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))) {
+ 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))) {
++sthead;
stack[sthead] = *curr;
} else {