aboutsummaryrefslogtreecommitdiff
path: root/engines/m4/animation.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2010-06-13 10:50:54 +0000
committerPaul Gilbert2010-06-13 10:50:54 +0000
commit4c6d276ce914cafc170732fb7203145c8a763b37 (patch)
tree13b246a31575ae165289681ea40ab188b59d2e02 /engines/m4/animation.cpp
parent466479eb77dfd04c7116f97f93e2f8013442307b (diff)
downloadscummvm-rg350-4c6d276ce914cafc170732fb7203145c8a763b37.tar.gz
scummvm-rg350-4c6d276ce914cafc170732fb7203145c8a763b37.tar.bz2
scummvm-rg350-4c6d276ce914cafc170732fb7203145c8a763b37.zip
Bugfixes for correct moving of the screen viewport within an animation
svn-id: r49629
Diffstat (limited to 'engines/m4/animation.cpp')
-rw-r--r--engines/m4/animation.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/m4/animation.cpp b/engines/m4/animation.cpp
index cf2d201b81..9b6d5d1a6f 100644
--- a/engines/m4/animation.cpp
+++ b/engines/m4/animation.cpp
@@ -333,13 +333,15 @@ void MadsAnimation::update() {
// Handle any offset adjustment for sprites as of this frame
if (_view->_posAdjust.x != misc.posAdjust.x) {
- misc.posAdjust.x = _view->_posAdjust.x;
+ _view->_posAdjust.x = misc.posAdjust.x;
screenChanged = true;
}
if (_view->_posAdjust.y != misc.posAdjust.y) {
- misc.posAdjust.y = _view->_posAdjust.y;
+ _view->_posAdjust.y = misc.posAdjust.y;
screenChanged = true;
}
+
+
if (screenChanged) {
// Signal the entire screen needs refreshing
_view->_spriteSlots.fullRefresh();