aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2005-04-15 15:19:41 +0000
committerTravis Howell2005-04-15 15:19:41 +0000
commit97652af2259882bc48f9a8bae4cae207f4d0f9dd (patch)
tree1002c0d97a98932d71fa4fe69a654f2f1e7c65de /scumm
parent2618ce80fa4055f1cb124c8bc0e425b727b562ad (diff)
downloadscummvm-rg350-97652af2259882bc48f9a8bae4cae207f4d0f9dd.tar.gz
scummvm-rg350-97652af2259882bc48f9a8bae4cae207f4d0f9dd.tar.bz2
scummvm-rg350-97652af2259882bc48f9a8bae4cae207f4d0f9dd.zip
MIN/MAX were in reverse.
svn-id: r17607
Diffstat (limited to 'scumm')
-rw-r--r--scumm/sprite_he.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/scumm/sprite_he.cpp b/scumm/sprite_he.cpp
index 74825705b8..3bb13cb75c 100644
--- a/scumm/sprite_he.cpp
+++ b/scumm/sprite_he.cpp
@@ -1130,10 +1130,10 @@ void ScummEngine_v90he::spritesMarkDirty(bool unkFlag) {
if (!(spi->flags & (kSFNeedRedraw | kSF30))) {
if ((!unkFlag || spi->zorderPriority >= 0) && (spi->flags & kSFMarkDirty)) {
int lp, rp;
- lp = MIN(0, spi->bbox.left / 8);
- lp = MAX(79, spi->bbox.left / 8);
- rp = MIN(0, (spi->bbox.right + 7) / 8);
- rp = MAX(79, (spi->bbox.right + 7) / 8);
+ lp = MAX(0, spi->bbox.left / 8);
+ lp = MIN(79, spi->bbox.left / 8);
+ rp = MAX(0, (spi->bbox.right + 7) / 8);
+ rp = MIN(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]) {
spi->flags |= kSFNeedRedraw;