diff options
Diffstat (limited to 'engines/kyra/animator.cpp')
-rw-r--r-- | engines/kyra/animator.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/kyra/animator.cpp b/engines/kyra/animator.cpp index 8d28bcc934..3a632634cd 100644 --- a/engines/kyra/animator.cpp +++ b/engines/kyra/animator.cpp @@ -677,8 +677,9 @@ void ScreenAnimator::animRefreshNPC(int character) { animObj->x1 = ch->x1; animObj->y1 = ch->y1; - _brandonScaleX = _vm->_scaleTable[ch->y1]; - _brandonScaleY = _vm->_scaleTable[ch->y1]; + int newScale = _vm->_scaleTable[ch->y1]; + _brandonScaleX = newScale; + _brandonScaleY = newScale; animObj->x1 += (_brandonScaleX * xOffset) >> 8; animObj->y1 += (_brandonScaleY * yOffset) >> 8; |