aboutsummaryrefslogtreecommitdiff
path: root/engines/draci/game.cpp
diff options
context:
space:
mode:
authorRobert Špalek2009-10-12 00:32:51 +0000
committerRobert Špalek2009-10-12 00:32:51 +0000
commitb99e69f4d9a4ec864d5b6f26787d1841e4bdc56d (patch)
tree9d82cc5017d54846ff84f2d8867c73c3b88031b7 /engines/draci/game.cpp
parent3ef5145b41852ce39494e353ee7c95600d49093e (diff)
downloadscummvm-rg350-b99e69f4d9a4ec864d5b6f26787d1841e4bdc56d.tar.gz
scummvm-rg350-b99e69f4d9a4ec864d5b6f26787d1841e4bdc56d.tar.bz2
scummvm-rg350-b99e69f4d9a4ec864d5b6f26787d1841e4bdc56d.zip
Fix indexing of the dragon's animations.
After inspection, I assert that it isn't true that the _anim array needs to be sorted. In fact, sorting ruins the ordering of the dragon's animations, which corresponds to enum Movement. After fixing this, let the dragon have a rest instead of constantly walking down. svn-id: r44962
Diffstat (limited to 'engines/draci/game.cpp')
-rw-r--r--engines/draci/game.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/draci/game.cpp b/engines/draci/game.cpp
index 97a9f6b5bc..c335773de3 100644
--- a/engines/draci/game.cpp
+++ b/engines/draci/game.cpp
@@ -958,7 +958,7 @@ void Game::walkHero(int x, int y) {
// Fetch dragon's animation ID
// FIXME: Need to add proper walking (this only warps the dragon to position)
- int animID = dragon->_anim[0];
+ int animID = dragon->_anim[kStopRight];
Animation *anim = _vm->_anims->getAnimation(animID);
positionAnimAsHero(anim);