diff options
author | Travis Howell | 2006-02-27 12:23:34 +0000 |
---|---|---|
committer | Travis Howell | 2006-02-27 12:23:34 +0000 |
commit | deecb616565e549bfea6d5695461806799b9e622 (patch) | |
tree | 0729c65b455ba6399ba01e394a80d337ea32dccb /engines/scumm | |
parent | be30d257e30eed665cffa7776e788d72468888c4 (diff) | |
download | scummvm-rg350-deecb616565e549bfea6d5695461806799b9e622.tar.gz scummvm-rg350-deecb616565e549bfea6d5695461806799b9e622.tar.bz2 scummvm-rg350-deecb616565e549bfea6d5695461806799b9e622.zip |
Use _numStrips when checking for foreced sprite redraw, instead of set values.
svn-id: r20956
Diffstat (limited to 'engines/scumm')
-rw-r--r-- | engines/scumm/he/sprite_he.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/scumm/he/sprite_he.cpp b/engines/scumm/he/sprite_he.cpp index 7de5f0742a..5d6bda07ac 100644 --- a/engines/scumm/he/sprite_he.cpp +++ b/engines/scumm/he/sprite_he.cpp @@ -1124,11 +1124,11 @@ void Sprite::setRedrawFlags(bool checkZOrder) { if ((!checkZOrder || spi->priority >= 0) && (spi->flags & kSFMarkDirty)) { int lp = spi->bbox.left / 8; lp = MAX(0, lp); - lp = MIN(lp, 79); + lp = MIN(lp, _vm->gdi._numStrips); int rp = (spi->bbox.right + 7) / 8; rp = MAX(0, rp); - rp = MIN(rp, 79); - for (; lp <= rp; ++lp) { + rp = MIN(rp, _vm->gdi._numStrips); + for (; lp < rp; lp++) { if (vs->tdirty[lp] < vs->h && spi->bbox.bottom >= vs->tdirty[lp] && spi->bbox.top <= vs->bdirty[lp]) { spi->flags |= kSFNeedRedraw; break; |