diff options
author | Paul Gilbert | 2014-10-08 22:47:14 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-10-08 22:47:14 -0400 |
commit | 3a205467a9ec12e899e3e4bfa34186d7a8f4c6bd (patch) | |
tree | d013eb40e9d2f0a05b2d5a33db5328721e6f6a5f /engines/mads/nebular | |
parent | c584515b2439a53cd17ef03597132b94bd342aa5 (diff) | |
download | scummvm-rg350-3a205467a9ec12e899e3e4bfa34186d7a8f4c6bd.tar.gz scummvm-rg350-3a205467a9ec12e899e3e4bfa34186d7a8f4c6bd.tar.bz2 scummvm-rg350-3a205467a9ec12e899e3e4bfa34186d7a8f4c6bd.zip |
MADS: Fix for switching between animations in AnimView sequence
Diffstat (limited to 'engines/mads/nebular')
-rw-r--r-- | engines/mads/nebular/menu_nebular.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/mads/nebular/menu_nebular.cpp b/engines/mads/nebular/menu_nebular.cpp index 6db9179608..1fbf96dcd5 100644 --- a/engines/mads/nebular/menu_nebular.cpp +++ b/engines/mads/nebular/menu_nebular.cpp @@ -858,8 +858,7 @@ bool AnimationView::onEvent(Common::Event &event) { void AnimationView::doFrame() { Scene &scene = _vm->_game->_scene; - // TODO: Or when current animation is finished - if (_resourceIndex == -1) { + if (_resourceIndex == -1 || _currentAnimation->freeFlag()) { if (++_resourceIndex == (int)_resources.size()) { scriptDone(); } else { |