Use proper range for the (screen/local) strip values

svn-id: r15453
This commit is contained in:
Max Horn 2004-10-07 21:19:37 +00:00
parent 86113ad042
commit ad285d6349

View file

@ -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);