From 37fa2df49acf2991c24c6b7e271ed4431f8dc5c5 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 30 May 2003 02:01:45 +0000 Subject: cleanup; removed last horizontal bound check from updateDirtyRect -> now all the various 'offscreen actor redraw' problems should be fixed (at least I can't reproduce them in COMI anymore), while The Dig should still work just fine (at least it does in my test cases) svn-id: r8129 --- scumm/camera.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'scumm/camera.cpp') diff --git a/scumm/camera.cpp b/scumm/camera.cpp index 7a9fab4714..90119cb90d 100644 --- a/scumm/camera.cpp +++ b/scumm/camera.cpp @@ -320,15 +320,13 @@ void Scumm::cameraMoved() { } } - _screenStartStrip = (camera._cur.x - (_screenWidth / 2)) >> 3; + _screenStartStrip = camera._cur.x / 8 - gdi._numStrips / 2; _screenEndStrip = _screenStartStrip + gdi._numStrips - 1; _screenTop = camera._cur.y - (_screenHeight / 2); if (_features & GF_AFTER_V7) { - _screenLeft = camera._cur.x - (_screenWidth / 2); } else { - _screenLeft = _screenStartStrip << 3; } -- cgit v1.2.3