diff options
-rw-r--r-- | engines/kyra/screen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/kyra/screen.cpp b/engines/kyra/screen.cpp index a21cf171f9..04088bc209 100644 --- a/engines/kyra/screen.cpp +++ b/engines/kyra/screen.cpp @@ -3246,7 +3246,7 @@ void ScreenEx::copyWsaRect(int x, int y, int w, int h, int dimState, int plotFun while (cW--) { uint8 d = *src++; uint8 t = _shapePages[0][dst - origDst] & 7; - if (unk1 < t || curY <= _maskMinY || curY >= _maskMaxY) + if (unk1 < t && (curY > _maskMinY && curY < _maskMaxY)) d = _shapePages[1][dst - origDst]; *dst++ = d; } @@ -3258,7 +3258,7 @@ void ScreenEx::copyWsaRect(int x, int y, int w, int h, int dimState, int plotFun uint8 d = *src++; if (d) { uint8 t = _shapePages[0][dst - origDst] & 7; - if (unk1 < t || curY <= _maskMinY || curY >= _maskMaxY) + if (unk1 < t && (curY > _maskMinY && curY < _maskMaxY)) d = _shapePages[1][dst - origDst]; *dst++ = d; } else { |