aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorBLooperZ2019-12-22 21:22:40 +0200
committerEugene Sandulenko2020-01-01 00:31:21 +0100
commit800ea6fb15d6fab3c6ecefdb3e33613aa94d58f0 (patch)
tree248cd6a75c929216232a02f6998376f34df9f792 /engines/scumm
parent0af04124c8124e2f3644057d162fe3b1bdc885c3 (diff)
downloadscummvm-rg350-800ea6fb15d6fab3c6ecefdb3e33613aa94d58f0.tar.gz
scummvm-rg350-800ea6fb15d6fab3c6ecefdb3e33613aa94d58f0.tar.bz2
scummvm-rg350-800ea6fb15d6fab3c6ecefdb3e33613aa94d58f0.zip
SCUMM: fix formatting
Diffstat (limited to 'engines/scumm')
-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 {