diff options
author | Paul Gilbert | 2015-03-14 19:30:01 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-03-14 19:30:01 -0400 |
commit | d3afff9bc736175b0275d923788198706adc7d78 (patch) | |
tree | eb8688865a9b078d1f376d8caa39134078c03c83 | |
parent | 299bfa3696aaf3c689798faef198d714eb234f4f (diff) | |
download | scummvm-rg350-d3afff9bc736175b0275d923788198706adc7d78.tar.gz scummvm-rg350-d3afff9bc736175b0275d923788198706adc7d78.tar.bz2 scummvm-rg350-d3afff9bc736175b0275d923788198706adc7d78.zip |
MADS: Fix animations erasing sprites on the last frame before transitioning
-rw-r--r-- | engines/mads/animation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mads/animation.cpp b/engines/mads/animation.cpp index bda0bb6876..b48491626d 100644 --- a/engines/mads/animation.cpp +++ b/engines/mads/animation.cpp @@ -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) |