diff options
author | Florian Kagerer | 2009-12-12 20:06:42 +0000 |
---|---|---|
committer | Florian Kagerer | 2009-12-12 20:06:42 +0000 |
commit | f4c54fb636478b4bdf4a2e8c3a76b060459a0ca1 (patch) | |
tree | 263efd9b89dae1acc97076509afc3de5efc6376e /engines/kyra/lol.cpp | |
parent | 0e7c2265b57b05b38929cbebf66feb446238d41c (diff) | |
download | scummvm-rg350-f4c54fb636478b4bdf4a2e8c3a76b060459a0ca1.tar.gz scummvm-rg350-f4c54fb636478b4bdf4a2e8c3a76b060459a0ca1.tar.bz2 scummvm-rg350-f4c54fb636478b4bdf4a2e8c3a76b060459a0ca1.zip |
LOL: moved TIM animation code into a separate class
svn-id: r46351
Diffstat (limited to 'engines/kyra/lol.cpp')
-rw-r--r-- | engines/kyra/lol.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/kyra/lol.cpp b/engines/kyra/lol.cpp index 6f122c890e..4808223020 100644 --- a/engines/kyra/lol.cpp +++ b/engines/kyra/lol.cpp @@ -47,6 +47,7 @@ LoLEngine::LoLEngine(OSystem *system, const GameFlags &flags) : KyraEngine_v1(sy _gui = 0; _txt = 0; _tim = 0; + _animator = 0; switch (_flags.lang) { case Common::EN_ANY: @@ -579,6 +580,7 @@ Common::Error LoLEngine::go() { _tim = new TIMInterpreter_LoL(this, _screen, _system); assert(_tim); + _animator = _tim->animator(); if (shouldQuit()) return Common::kNoError; @@ -1796,7 +1798,7 @@ void LoLEngine::updateSequenceBackgroundAnimations() { return; for (int i = 0; i < 6; i++) - _tim->updateBackgroundAnimation(i); + _animator->update(i); } void LoLEngine::loadTalkFile(int index) { |