diff options
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/camera.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/scumm/camera.cpp b/scumm/camera.cpp index 67df602705..ce248ac165 100644 --- a/scumm/camera.cpp +++ b/scumm/camera.cpp @@ -337,13 +337,15 @@ void Scumm::cameraMoved() { virtscr[0].xstart = _screenStartStrip << 3; #endif - int dx = camera._cur.x - camera._last.x; - int dy = camera._cur.y - camera._last.y; - if (dx || dy) { - gdi._mask.left -= dx; - gdi._mask.right -= dx; - gdi._mask.top -= dy; - gdi._mask.bottom -= dy; + if (_charset->_hasMask) { + int dx = camera._cur.x - camera._last.x; + int dy = camera._cur.y - camera._last.y; + if (dx || dy) { + gdi._mask.left -= dx; + gdi._mask.right -= dx; + gdi._mask.top -= dy; + gdi._mask.bottom -= dy; + } } } |