From 2b8140136836a9620714a25bce597909849fe2a6 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Wed, 15 Jun 2016 06:09:48 +0200 Subject: SCUMM HE: Silence GCC "suggest parentheses" warnings Thanks to sev for confirming that this is the intended expressions. --- engines/scumm/he/moonbase/distortion.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/scumm/he/moonbase') 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) -- cgit v1.2.3