From 9a3a66ab685c33dab1a85cf2aae73d1df7e45c29 Mon Sep 17 00:00:00 2001 From: Ľubomír Remák Date: Mon, 2 Apr 2018 14:26:14 +0200 Subject: MUTATIONOFJB: Fix object animatation loader. --- engines/mutationofjb/room.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engines/mutationofjb/room.cpp b/engines/mutationofjb/room.cpp index 66da3acfb2..5ed6ca3ca2 100644 --- a/engines/mutationofjb/room.cpp +++ b/engines/mutationofjb/room.cpp @@ -61,8 +61,8 @@ void RoomAnimationDecoderCallback::onFrame(int frameNo, Graphics::Surface &surfa if (frameNo1 >= startFrame && frameNo1 < startFrame + object._NA) { const int x = object._x; const int y = object._y; - const int w = object._XL / 4 * 4; - const int h = object._YL / 4 * 4; + const int w = (object._XL + 3) / 4 * 4; // Original code uses this to round up width to a multiple of 4. + const int h = object._YL; Common::Rect rect(x, y, x + w, y + h); const Graphics::Surface sharedSurface = surface.getSubArea(rect); -- cgit v1.2.3