Skip to content

Commit

Permalink
MUTATIONOFJB: Fix object animatation loader.
Browse files Browse the repository at this point in the history
  • Loading branch information
LubomirR authored and sev- committed Aug 25, 2018
1 parent 99d9055 commit 9a3a66a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/mutationofjb/room.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ void RoomAnimationDecoderCallback::onFrame(int frameNo, Graphics::Surface &surfa
if (frameNo1 >= startFrame && frameNo1 < startFrame + object._NA) { if (frameNo1 >= startFrame && frameNo1 < startFrame + object._NA) {
const int x = object._x; const int x = object._x;
const int y = object._y; const int y = object._y;
const int w = object._XL / 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 / 4 * 4; const int h = object._YL;
Common::Rect rect(x, y, x + w, y + h); Common::Rect rect(x, y, x + w, y + h);


const Graphics::Surface sharedSurface = surface.getSubArea(rect); const Graphics::Surface sharedSurface = surface.getSubArea(rect);
Expand Down

0 comments on commit 9a3a66a

Please sign in to comment.