mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
MADS: Fix animations erasing sprites on the last frame before transitioning
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user