aboutsummaryrefslogtreecommitdiff
path: root/engines/tinsel
diff options
context:
space:
mode:
Diffstat (limited to 'engines/tinsel')
-rw-r--r--engines/tinsel/graphics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/tinsel/graphics.cpp b/engines/tinsel/graphics.cpp
index b917775360..ef8a10221b 100644
--- a/engines/tinsel/graphics.cpp
+++ b/engines/tinsel/graphics.cpp
@@ -272,7 +272,7 @@ static void MacDrawTiles(DRAWOBJECT *pObj, uint8 *srcP, uint8 *destP, bool apply
tempDest += rptLength;
}
- int overflow = (copyBytes % 2) == 0 ? 0 : 2 - (copyBytes % 2);
+ int overflow = (copyBytes & 1);
x += runLength;
srcP += runLength + overflow;
}