[Scummvm-cvs-logs] SF.net SVN: scummvm:[42584] scummvm/branches/gsoc2009-draci/engines/draci/ game.cpp
dkasak13 at users.sourceforge.net
dkasak13 at users.sourceforge.net
Sat Jul 18 05:20:26 CEST 2009
Revision: 42584
http://scummvm.svn.sourceforge.net/scummvm/?rev=42584&view=rev
Author: dkasak13
Date: 2009-07-18 03:20:26 +0000 (Sat, 18 Jul 2009)
Log Message:
-----------
Made the engine handle the Z coordinate for the hero properly.
Modified Paths:
--------------
scummvm/branches/gsoc2009-draci/engines/draci/game.cpp
Modified: scummvm/branches/gsoc2009-draci/engines/draci/game.cpp
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/game.cpp 2009-07-18 03:12:12 UTC (rev 42583)
+++ scummvm/branches/gsoc2009-draci/engines/draci/game.cpp 2009-07-18 03:20:26 UTC (rev 42584)
@@ -171,11 +171,10 @@
Animation *anim = _vm->_anims->getAnimation(animID);
Drawable *frame = anim->getFrame();
- y -= frame->getHeight();
-
- // HACK: Z needs to be handled according to Y position
- anim->setZ(256);
+ anim->setZ(y+1);
+
+ y -= frame->getHeight();
anim->setRelative(x, y);
_vm->_anims->play(animID);
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