[Scummvm-cvs-logs] SF.net SVN: scummvm:[55399] scummvm/trunk/engines/toon/drew.cpp
sylvaintv at users.sourceforge.net
sylvaintv at users.sourceforge.net
Sat Jan 22 00:24:17 CET 2011
Revision: 55399
http://scummvm.svn.sourceforge.net/scummvm/?rev=55399&view=rev
Author: sylvaintv
Date: 2011-01-21 23:24:17 +0000 (Fri, 21 Jan 2011)
Log Message:
-----------
TOON: Bug #3153351 fixed with disappearing Drew
Bug #3153351: "TOON: Drew vanishes when fixing churnatron"
Made sure the scale is never zero.
Modified Paths:
--------------
scummvm/trunk/engines/toon/drew.cpp
Modified: scummvm/trunk/engines/toon/drew.cpp
===================================================================
--- scummvm/trunk/engines/toon/drew.cpp 2011-01-21 22:56:22 UTC (rev 55398)
+++ scummvm/trunk/engines/toon/drew.cpp 2011-01-21 23:24:17 UTC (rev 55399)
@@ -52,7 +52,9 @@
debugC(5, kDebugCharacter, "setPosition(%d, %d)", x, y);
_z = _vm->getLayerAtPoint(x, y);
- _scale = _vm->getScaleAtPoint(x, y);
+ int newScale = _vm->getScaleAtPoint(x, y);
+ if (newScale > 0)
+ _scale = newScale;
// work out position and scale of the character sprite
int32 width = _walkAnim->getWidth() * _scale / 1024;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list