From ad285d6349371de885680049b155db19ff770e64 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 7 Oct 2004 21:19:37 +0000 Subject: Use proper range for the (screen/local) strip values svn-id: r15453 --- scumm/object.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/scumm/object.cpp b/scumm/object.cpp index e297ad41b5..4a8a069e99 100644 --- a/scumm/object.cpp +++ b/scumm/object.cpp @@ -1556,13 +1556,8 @@ void ScummEngine::removeBlastObject(BlastObject *eo) { if (left_strip < 0) left_strip = 0; - if (_version >= 7) { - if (right_strip > 409) - right_strip = 409; - } else { - if (right_strip >= 200) - right_strip = 200; - } + if (right_strip > gdi._numStrips - 1) + right_strip = gdi._numStrips - 1; for (i = left_strip; i <= right_strip; i++) gdi.resetBackground(r.top, r.bottom, i); -- cgit v1.2.3