[Scummvm-cvs-logs] scummvm master -> d3afff9bc736175b0275d923788198706adc7d78
dreammaster
dreammaster at scummvm.org
Sun Mar 15 00:31:02 CET 2015
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
d3afff9bc7 MADS: Fix animations erasing sprites on the last frame before transitioning
Commit: d3afff9bc736175b0275d923788198706adc7d78
https://github.com/scummvm/scummvm/commit/d3afff9bc736175b0275d923788198706adc7d78
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2015-03-14T19:30:01-04:00
Commit Message:
MADS: Fix animations erasing sprites on the last frame before transitioning
Changed paths:
engines/mads/animation.cpp
diff --git a/engines/mads/animation.cpp b/engines/mads/animation.cpp
index bda0bb6..b484916 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)
More information about the Scummvm-git-logs
mailing list