Fix bug #1258479 "ITE: Graphical glitches in wildcat tribe"

svn-id: r18688
This commit is contained in:
Eugene Sandulenko 2005-08-15 01:01:52 +00:00
parent 5cca832a85
commit 7aa7430c41

View File

@ -145,8 +145,8 @@ void Sprite::getScaledSpriteBuffer(SpriteList &spriteList, int spriteNumber, int
if (scale < 256) {
xAlign = (spriteInfo->xAlign * scale) >> 8;
yAlign = (spriteInfo->yAlign * scale) >> 8;
height = (spriteInfo->height * scale + 0x80) >> 8;
width = (spriteInfo->width * scale + 0x80) >> 8;
height = (spriteInfo->height * scale + 0x7f) >> 8;
width = (spriteInfo->width * scale + 0x7f) >> 8;
scaleBuffer(spriteInfo->decodedBuffer, spriteInfo->width, spriteInfo->height, scale);
buffer = _decodeBuf;
} else {