aboutsummaryrefslogtreecommitdiff
path: root/engines/mads
diff options
context:
space:
mode:
authorPaul Gilbert2015-03-29 16:21:49 -0400
committerPaul Gilbert2015-03-29 16:21:49 -0400
commitfb0f95172a0395cc6d86f26fea5de2c6a780999a (patch)
tree3603672a0b160fec3bd2658e64268a5d9456efda /engines/mads
parentd582c8492ce5ef300e24358c80bf0adadcfd11f0 (diff)
downloadscummvm-rg350-fb0f95172a0395cc6d86f26fea5de2c6a780999a.tar.gz
scummvm-rg350-fb0f95172a0395cc6d86f26fea5de2c6a780999a.tar.bz2
scummvm-rg350-fb0f95172a0395cc6d86f26fea5de2c6a780999a.zip
MADS: Don't hide sprites bewteen resources in an animation sequence
Diffstat (limited to 'engines/mads')
-rw-r--r--engines/mads/menu_views.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/mads/menu_views.cpp b/engines/mads/menu_views.cpp
index 5a0c7ee92e..319f5b0f87 100644
--- a/engines/mads/menu_views.cpp
+++ b/engines/mads/menu_views.cpp
@@ -544,6 +544,7 @@ void AnimationView::doFrame() {
scriptDone();
} else {
scene._frameStartTime = 0;
+ scene._spriteSlots.clear();
loadNextResource();
}
} else if (_currentAnimation->getCurrentFrame() == 1) {
@@ -559,6 +560,10 @@ void AnimationView::doFrame() {
++scene._frameStartTime;
_currentAnimation->update();
_redrawFlag = true;
+
+ if (_currentAnimation->freeFlag())
+ // We don't want the sprites removed after the last animation frame
+ scene._spriteSlots.clear();
}
}