aboutsummaryrefslogtreecommitdiff
path: root/scumm/costume.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/costume.cpp')
-rw-r--r--scumm/costume.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/scumm/costume.cpp b/scumm/costume.cpp
index f39e41ac18..06e636165d 100644
--- a/scumm/costume.cpp
+++ b/scumm/costume.cpp
@@ -557,7 +557,8 @@ void ClassicCostumeRenderer::proc3_ami(Codec1 &v1) {
if (v1.x != oldXpos) {
dst += _out.pitch - (v1.x - oldXpos);
v1.mask_ptr += _numStrips;
- mask = v1.mask_ptr;
+ mask = v1.mask_ptr + oldXpos / 8;
+ maskbit = revBitMask(oldXpos & 7);
y++;
}
width = _width;