mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-28 04:34:50 +00:00
Made the engine handle the Z coordinate for the hero properly.
svn-id: r42584
This commit is contained in:
parent
10e9a780ce
commit
128fe6ea21
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user