diff options
Diffstat (limited to 'engines/kyra/scene_hof.cpp')
-rw-r--r-- | engines/kyra/scene_hof.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/kyra/scene_hof.cpp b/engines/kyra/scene_hof.cpp index 216c453b4b..30f514262b 100644 --- a/engines/kyra/scene_hof.cpp +++ b/engines/kyra/scene_hof.cpp @@ -552,10 +552,10 @@ void KyraEngine_HoF::initSceneAnims(int unk1) { animState->xPos2 = _mainCharacter.x1; animState->yPos2 = _mainCharacter.y1; - _charScaleX = _charScaleY = getScale(_mainCharacter.x1, _mainCharacter.y1); + _charScale = getScale(_mainCharacter.x1, _mainCharacter.y1); - int shapeXScaled = (shapeX * _charScaleX) >> 8; - int shapeYScaled = (shapeY * _charScaleY) >> 8; + int shapeXScaled = (shapeX * _charScale) >> 8; + int shapeYScaled = (shapeY * _charScale) >> 8; animState->xPos2 += shapeXScaled; animState->yPos2 += shapeYScaled; |