diff options
author | Travis Howell | 2005-04-05 12:52:43 +0000 |
---|---|---|
committer | Travis Howell | 2005-04-05 12:52:43 +0000 |
commit | 0c49146b41095849de7ddb9c8eaa2077c2ce2b84 (patch) | |
tree | a778c70906851c46ffc81222a1bd68fda7425a17 /scumm | |
parent | 101917d03fc05c64d3abe5b22e0b517b0899f4c6 (diff) | |
download | scummvm-rg350-0c49146b41095849de7ddb9c8eaa2077c2ce2b84.tar.gz scummvm-rg350-0c49146b41095849de7ddb9c8eaa2077c2ce2b84.tar.bz2 scummvm-rg350-0c49146b41095849de7ddb9c8eaa2077c2ce2b84.zip |
Cleanup
svn-id: r17385
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/sprite_he.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/scumm/sprite_he.cpp b/scumm/sprite_he.cpp index cf22d63556..e22b518cb1 100644 --- a/scumm/sprite_he.cpp +++ b/scumm/sprite_he.cpp @@ -1107,7 +1107,6 @@ void ScummEngine_v90he::spritesMarkDirty(bool unkFlag) { SpriteInfo *spi = _activeSpritesTable[i]; if (!(spi->flags & (kSFNeedRedraw | kSF30))) { if ((!unkFlag || spi->zorderPriority >= 0) && (spi->flags & kSFMarkDirty)) { - bool needRedraw = false; int lp, rp; lp = MIN(0, spi->bbox.left / 8); lp = MAX(79, spi->bbox.left / 8); @@ -1115,13 +1114,10 @@ void ScummEngine_v90he::spritesMarkDirty(bool unkFlag) { rp = MAX(79, (spi->bbox.right + 7) / 8); for (; lp <= rp; ++lp) { if (vs->tdirty[lp] < vs->h && spi->bbox.bottom >= vs->tdirty[lp] && spi->bbox.top <= vs->bdirty[lp]) { - needRedraw = true; + spi->flags |= kSFNeedRedraw; break; } } - if (needRedraw) { - spi->flags |= kSFNeedRedraw; - } } } } |