MADS: Fix animations erasing sprites on the last frame before transitioning

This commit is contained in:
Paul Gilbert
2015-03-14 19:30:01 -04:00
parent 299bfa3696
commit d3afff9bc7
+2 -2
View File
@@ -436,8 +436,6 @@ void Animation::update() {
if (_vm->_game->_scene._frameStartTime < _nextFrameTimer)
return;
eraseSprites();
// Validate the current frame
if (_currentFrame >= (int)_miscEntries.size()) {
// Is the animation allowed to be repeated?
@@ -450,6 +448,8 @@ void Animation::update() {
}
}
eraseSprites();
// Handle executing any sound command for this frame
AnimMiscEntry &misc = _miscEntries[_currentFrame];
if (misc._soundId)