diff options
| author | Martin Kiewitz | 2016-02-09 19:55:51 +0100 | 
|---|---|---|
| committer | Martin Kiewitz | 2016-02-09 19:56:13 +0100 | 
| commit | 3416f67b89cbf670228f0f0d270bbb3f7ab1b3ee (patch) | |
| tree | d89c20fbc03edce1b1e34fc86d7f402dde23191b | |
| parent | 82b5ed65ccfa1dba63492809737d493dd4a3d70b (diff) | |
| download | scummvm-rg350-3416f67b89cbf670228f0f0d270bbb3f7ab1b3ee.tar.gz scummvm-rg350-3416f67b89cbf670228f0f0d270bbb3f7ab1b3ee.tar.bz2 scummvm-rg350-3416f67b89cbf670228f0f0d270bbb3f7ab1b3ee.zip | |
AGI: Fix invalid coordinate warnings for sprites
| -rw-r--r-- | engines/agi/sprite.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/engines/agi/sprite.cpp b/engines/agi/sprite.cpp index 09935c93f9..434cf1b30e 100644 --- a/engines/agi/sprite.cpp +++ b/engines/agi/sprite.cpp @@ -110,7 +110,7 @@ void SpritesMgr::buildSpriteListAdd(uint16 givenOrderNr, ScreenObjEntry *screenO  	// Checking, if xPos/yPos/right/bottom are valid and do not go outside of playscreen (visual screen)  	// Original AGI did not do this (but it then resulted in memory corruption)  	if (spriteEntry.xPos < 0) { -		warning("buildSpriteListAdd(): ignoring screen obj %d, b/c xPos < 0", screenObj->objectNr, spriteEntry.xPos); +		warning("buildSpriteListAdd(): ignoring screen obj %d, b/c xPos (%d) < 0", screenObj->objectNr, spriteEntry.xPos);  		return;  	}  	if (spriteEntry.yPos < 0) { @@ -119,12 +119,12 @@ void SpritesMgr::buildSpriteListAdd(uint16 givenOrderNr, ScreenObjEntry *screenO  	}  	int16 xRight = spriteEntry.xPos + spriteEntry.xSize;  	if (xRight > SCRIPT_HEIGHT) { -		warning("buildSpriteListAdd(): ignoring screen obj %d, b/c rightPos > %d", screenObj->objectNr, xRight, SCRIPT_WIDTH); +		warning("buildSpriteListAdd(): ignoring screen obj %d, b/c rightPos (%d) > %d", screenObj->objectNr, xRight, SCRIPT_WIDTH);  		return;  	}  	int16 yBottom = spriteEntry.yPos + spriteEntry.ySize;  	if (yBottom > SCRIPT_HEIGHT) { -		warning("buildSpriteListAdd(): ignoring screen obj %d, b/c bottomPos > %d", screenObj->objectNr, yBottom, SCRIPT_HEIGHT); +		warning("buildSpriteListAdd(): ignoring screen obj %d, b/c bottomPos (%d) > %d", screenObj->objectNr, yBottom, SCRIPT_HEIGHT);  		return;  	} | 
