aboutsummaryrefslogtreecommitdiff
path: root/engines/draci/game.cpp
diff options
context:
space:
mode:
authorDenis Kasak2009-07-05 11:52:17 +0000
committerDenis Kasak2009-07-05 11:52:17 +0000
commit8e341ee968017be7d5bf7690473c80500c6b75d9 (patch)
tree809b77787a29c0e072bc0b5ef37f1ad9ef564e95 /engines/draci/game.cpp
parent6c3e9f5151fac4906c2fabc2e26ee39bc7043664 (diff)
downloadscummvm-rg350-8e341ee968017be7d5bf7690473c80500c6b75d9.tar.gz
scummvm-rg350-8e341ee968017be7d5bf7690473c80500c6b75d9.tar.bz2
scummvm-rg350-8e341ee968017be7d5bf7690473c80500c6b75d9.zip
Renaming Animation -> AnimationManager and AnimObj -> Animation in light of the new API change.
svn-id: r42133
Diffstat (limited to 'engines/draci/game.cpp')
-rw-r--r--engines/draci/game.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/draci/game.cpp b/engines/draci/game.cpp
index a843a8267e..b2295d15b8 100644
--- a/engines/draci/game.cpp
+++ b/engines/draci/game.cpp
@@ -189,7 +189,7 @@ int Game::loadAnimation(uint animNum) {
animationReader.readByte(); // Cyclic field, not used
animationReader.readByte(); // Relative field, not used
- AnimObj *obj = _vm->_anims->addAnimation(animNum, 254, false);
+ Animation *anim = _vm->_anims->addAnimation(animNum, 254, false);
for (uint i = 0; i < numFrames; ++i) {
uint spriteNum = animationReader.readUint16LE() - 1;
@@ -202,7 +202,7 @@ int Game::loadAnimation(uint animNum) {
uint freq = animationReader.readUint16LE();
uint delay = animationReader.readUint16LE();
- obj->setDelay(delay * 10);
+ anim->setDelay(delay * 10);
BAFile *spriteFile = _vm->_spritesArchive->getFile(spriteNum);
@@ -212,9 +212,9 @@ int Game::loadAnimation(uint animNum) {
sp->setMirrorOn();
// HACK: This is only for testing
- obj->setLooping(true);
+ anim->setLooping(true);
- obj->addFrame(sp);
+ anim->addFrame(sp);
}
return animNum;