diff options
author | Denis Kasak | 2009-07-18 03:20:26 +0000 |
---|---|---|
committer | Denis Kasak | 2009-07-18 03:20:26 +0000 |
commit | 128fe6ea21f885c020f821f75f5a47427825eef6 (patch) | |
tree | be41abf5b92ce681202a88d98d9abd36b016179e | |
parent | 10e9a780ce870a0273c5d35cbb0ccfb45391087b (diff) | |
download | scummvm-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.cpp | 7 |
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); |