aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Kasak2009-07-18 03:20:26 +0000
committerDenis Kasak2009-07-18 03:20:26 +0000
commit128fe6ea21f885c020f821f75f5a47427825eef6 (patch)
treebe41abf5b92ce681202a88d98d9abd36b016179e
parent10e9a780ce870a0273c5d35cbb0ccfb45391087b (diff)
downloadscummvm-rg350-128fe6ea21f885c020f821f75f5a47427825eef6.tar.gz
scummvm-rg350-128fe6ea21f885c020f821f75f5a47427825eef6.tar.bz2
scummvm-rg350-128fe6ea21f885c020f821f75f5a47427825eef6.zip
Made the engine handle the Z coordinate for the hero properly.
svn-id: r42584
-rw-r--r--engines/draci/game.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/draci/game.cpp b/engines/draci/game.cpp
index 008c1b6389..e532dd907c 100644
--- a/engines/draci/game.cpp
+++ b/engines/draci/game.cpp
@@ -171,11 +171,10 @@ void Game::loop() {
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);