aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/costume.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/scumm/costume.cpp')
-rw-r--r--engines/scumm/costume.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/scumm/costume.cpp b/engines/scumm/costume.cpp
index 5d81cdc441..82201a6017 100644
--- a/engines/scumm/costume.cpp
+++ b/engines/scumm/costume.cpp
@@ -443,7 +443,7 @@ void ClassicCostumeRenderer::proc3(Codec1 &v1) {
do {
if (_scaleY == 255 || v1.scaletable[scaleIndexY++] < _scaleY) {
- masked = (y < 0 || y >= _out.h) || (v1.mask_ptr && (mask[0] & maskbit));
+ masked = (y < 0 || y >= _out.h) || (v1.x < 0 || v1.x >= _out.w) || (v1.mask_ptr && (mask[0] & maskbit));
if (color && !masked) {
if (_shadow_mode & 0x20) {
@@ -510,9 +510,9 @@ void ClassicCostumeRenderer::proc3_ami(Codec1 &v1) {
len = *src++;
do {
if (_scaleY == 255 || v1.scaletable[_scaleIndexY] < _scaleY) {
- masked = (y < 0 || y >= _out.h) || (v1.mask_ptr && (mask[0] & maskbit));
+ masked = (y < 0 || y >= _out.h) || (v1.x < 0 || v1.x >= _out.w) || (v1.mask_ptr && (mask[0] & maskbit));
- if (color && v1.x >= 0 && v1.x < _out.w && !masked) {
+ if (color && !masked) {
*dst = _palette[color];
}