Made the engine handle the Z coordinate for the hero properly.

svn-id: r42584
This commit is contained in:
Denis Kasak 2009-07-18 03:20:26 +00:00
parent 10e9a780ce
commit 128fe6ea21

View File

@ -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);