Permalink
Browse files

MUTATIONOFJB: Fix object animatation loader.

  • Loading branch information...
LubomirR authored and sev- committed Apr 2, 2018
1 parent 99d9055 commit 9a3a66ab685c33dab1a85cf2aae73d1df7e45c29
Showing with 2 additions and 2 deletions.
  1. +2 −2 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);

0 comments on commit 9a3a66a

Please sign in to comment.