aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJulien2011-06-04 02:56:25 +0800
committerJulien2011-06-23 15:11:36 +0800
commita8b13e8a6be900995c85f08fd527750e2620c215 (patch)
tree786f4ec80a395386a24be8d05de79e8121718cc0 /engines
parent1cc7faa2426a59cf4af87b757027f767940910c7 (diff)
downloadscummvm-rg350-a8b13e8a6be900995c85f08fd527750e2620c215.tar.gz
scummvm-rg350-a8b13e8a6be900995c85f08fd527750e2620c215.tar.bz2
scummvm-rg350-a8b13e8a6be900995c85f08fd527750e2620c215.zip
AGOS: Fix operator precedence warning
Diffstat (limited to 'engines')
-rw-r--r--engines/agos/string.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/agos/string.cpp b/engines/agos/string.cpp
index f9a06cbecb..410fd5a1ce 100644
--- a/engines/agos/string.cpp
+++ b/engines/agos/string.cpp
@@ -517,8 +517,7 @@ void AGOSEngine::printScreenText(uint vgaSpriteId, uint color, const char *strin
y -= textHeight;
} else
pos = stringLength;
- padding = (lettersPerRow - pos) % 2 ?
- (lettersPerRow - pos) / 2 + 1 : (lettersPerRow - pos) / 2;
+ padding = ((lettersPerRow - pos) % 2) ? (lettersPerRow - pos) / 2 + 1 : (lettersPerRow - pos) / 2;
while (padding--)
*convertedString2++ = ' ';
stringLength -= pos;