From 9e0e2fa1d54bcf4ef9dab7a73c93b845fe1bbbaa Mon Sep 17 00:00:00 2001 From: Paweł Kołodziejski Date: Sun, 27 Oct 2002 09:06:20 +0000 Subject: removed hardcoded values and increased range of strips svn-id: r5329 --- scumm/object.cpp | 4 ++-- scumm/script.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'scumm') diff --git a/scumm/object.cpp b/scumm/object.cpp index a27ea03f9e..11246ad16c 100644 --- a/scumm/object.cpp +++ b/scumm/object.cpp @@ -1298,8 +1298,8 @@ void Scumm::removeBlastObject(BlastObject *eo) if (left_strip < 0) left_strip = 0; - if (right_strip >= 200) - right_strip = 200; + if (right_strip >= 240) + right_strip = 240; for (i = left_strip; i <= right_strip; i++) gdi.resetBackground(top, bottom, i); diff --git a/scumm/script.cpp b/scumm/script.cpp index ee3d536183..7d95e4ae4b 100644 --- a/scumm/script.cpp +++ b/scumm/script.cpp @@ -473,7 +473,7 @@ void Scumm::drawBox(int x, int y, int x2, int y2, int color) x2++; y2++; - if (x > 319) + if (x > _realWidth - 1) return; if (x < 0) x = 0; -- cgit v1.2.3