aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/animation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mads/animation.cpp')
-rw-r--r--engines/mads/animation.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/engines/mads/animation.cpp b/engines/mads/animation.cpp
index d2260dac92..429c5669a9 100644
--- a/engines/mads/animation.cpp
+++ b/engines/mads/animation.cpp
@@ -466,16 +466,17 @@ void Animation::update() {
}
bool isV2 = (_vm->getGameID() != GType_RexNebular);
- if (!isV2) {
+ if (isV2 && _canChangeView) {
// Handle any offset adjustment for sprites as of this frame
// FIXME: This doesn't work properly for Phantom scene 101
bool paChanged = false;
- if (scene._posAdjust.x != misc._posAdjust.x) {
- scene._posAdjust.x = misc._posAdjust.x;
+ if (getFramePosAdjust(_currentFrame).x != scene._posAdjust.x) {
+ scene._posAdjust.x = getFramePosAdjust(_currentFrame).x;
paChanged = true;
}
- if (scene._posAdjust.y != misc._posAdjust.y) {
- scene._posAdjust.y = misc._posAdjust.y;
+
+ if (getFramePosAdjust(_currentFrame).y != scene._posAdjust.y) {
+ scene._posAdjust.y = getFramePosAdjust(_currentFrame).y;
paChanged = true;
}