aboutsummaryrefslogtreecommitdiff
path: root/engines/mutationofjb
diff options
context:
space:
mode:
authorĽubomír Remák2018-04-02 14:26:14 +0200
committerEugene Sandulenko2018-08-25 23:12:01 +0200
commit9a3a66ab685c33dab1a85cf2aae73d1df7e45c29 (patch)
treebf2cddd9d3cc5bb6144cbeea267cbac31532171d /engines/mutationofjb
parent99d9055e201b0518baad741f4f46cb86c2f7e172 (diff)
downloadscummvm-rg350-9a3a66ab685c33dab1a85cf2aae73d1df7e45c29.tar.gz
scummvm-rg350-9a3a66ab685c33dab1a85cf2aae73d1df7e45c29.tar.bz2
scummvm-rg350-9a3a66ab685c33dab1a85cf2aae73d1df7e45c29.zip
MUTATIONOFJB: Fix object animatation loader.
Diffstat (limited to 'engines/mutationofjb')
-rw-r--r--engines/mutationofjb/room.cpp4
1 files 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);