diff options
author | Max Horn | 2004-10-07 21:19:37 +0000 |
---|---|---|
committer | Max Horn | 2004-10-07 21:19:37 +0000 |
commit | ad285d6349371de885680049b155db19ff770e64 (patch) | |
tree | 64cdb8f754adb13302b77dcb5f5835ff6e5a8f89 /scumm | |
parent | 86113ad04297dc463a6fdb650cbcf91c893ff16d (diff) | |
download | scummvm-rg350-ad285d6349371de885680049b155db19ff770e64.tar.gz scummvm-rg350-ad285d6349371de885680049b155db19ff770e64.tar.bz2 scummvm-rg350-ad285d6349371de885680049b155db19ff770e64.zip |
Use proper range for the (screen/local) strip values
svn-id: r15453
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/object.cpp | 9 |
1 files 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); |