diff options
author | Lars Persson | 2006-03-01 14:20:40 +0000 |
---|---|---|
committer | Lars Persson | 2006-03-01 14:20:40 +0000 |
commit | 0653d509d38f096ca6cc177f80f935d398bc0134 (patch) | |
tree | bc3acdcec44d2e65906e54a125599b15f566a953 /engines/scumm | |
parent | 8a60a991404420fc67fe850284bb5b1a68ba2c4b (diff) | |
download | scummvm-rg350-0653d509d38f096ca6cc177f80f935d398bc0134.tar.gz scummvm-rg350-0653d509d38f096ca6cc177f80f935d398bc0134.tar.bz2 scummvm-rg350-0653d509d38f096ca6cc177f80f935d398bc0134.zip |
Updated datatypes to resolve ambiguity
svn-id: r20991
Diffstat (limited to 'engines/scumm')
-rw-r--r-- | engines/scumm/he/sprite_he.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/scumm/he/sprite_he.cpp b/engines/scumm/he/sprite_he.cpp index 5d6bda07ac..9df5db4d95 100644 --- a/engines/scumm/he/sprite_he.cpp +++ b/engines/scumm/he/sprite_he.cpp @@ -1122,11 +1122,11 @@ void Sprite::setRedrawFlags(bool checkZOrder) { SpriteInfo *spi = _activeSpritesTable[i]; if (!(spi->flags & kSFNeedRedraw)) { if ((!checkZOrder || spi->priority >= 0) && (spi->flags & kSFMarkDirty)) { - int lp = spi->bbox.left / 8; - lp = MAX(0, lp); + int32 lp = spi->bbox.left / 8; + lp = MAX(0L, lp); lp = MIN(lp, _vm->gdi._numStrips); - int rp = (spi->bbox.right + 7) / 8; - rp = MAX(0, rp); + int32 rp = (spi->bbox.right + 7) / 8; + rp = MAX(0L, rp); 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]) { |