aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorTorbjörn Andersson2016-06-15 06:09:48 +0200
committerTorbjörn Andersson2016-06-15 06:09:48 +0200
commit2b8140136836a9620714a25bce597909849fe2a6 (patch)
tree9dfeb11c96763553d0aae8c8beca570f4bdcd1bb /engines/scumm
parent5188a954a68c1a4136d10d7f0812a26140540cc0 (diff)
downloadscummvm-rg350-2b8140136836a9620714a25bce597909849fe2a6.tar.gz
scummvm-rg350-2b8140136836a9620714a25bce597909849fe2a6.tar.bz2
scummvm-rg350-2b8140136836a9620714a25bce597909849fe2a6.zip
SCUMM HE: Silence GCC "suggest parentheses" warnings
Thanks to sev for confirming that this is the intended expressions.
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/he/moonbase/distortion.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/scumm/he/moonbase/distortion.cpp b/engines/scumm/he/moonbase/distortion.cpp
index 4f09ba54ed..8465771820 100644
--- a/engines/scumm/he/moonbase/distortion.cpp
+++ b/engines/scumm/he/moonbase/distortion.cpp
@@ -91,8 +91,8 @@ static void blitDistortionCore(
for (int i = cw; --i >= 0;) {
uint16 p = READ_LE_UINT16(is);
- int sx = baseX + dx + (p >> 5) & 0x1f; // G color
- int sy = baseY + dy + p & 0x1f; // B color;
+ int sx = baseX + dx + ((p >> 5) & 0x1f); // G color
+ int sy = baseY + dy + (p & 0x1f); // B color;
if (transferOp == kReflectionClipped) {
if (sx < srcClipRect->left)