From 97652af2259882bc48f9a8bae4cae207f4d0f9dd Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Fri, 15 Apr 2005 15:19:41 +0000 Subject: MIN/MAX were in reverse. svn-id: r17607 --- scumm/sprite_he.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scumm') 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; -- cgit v1.2.3