aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2016-06-15 22:02:55 +0200
committerEugene Sandulenko2016-06-15 22:02:55 +0200
commitbb43f5c0f4a1e06129ed81a9f0e70862f6345e0b (patch)
tree36e212b4fb6b8eb34ecc85149b7fedbcb65ed38c /engines
parent0211c0b27cff86506ae8e1125693abf204305d5f (diff)
downloadscummvm-rg350-bb43f5c0f4a1e06129ed81a9f0e70862f6345e0b.tar.gz
scummvm-rg350-bb43f5c0f4a1e06129ed81a9f0e70862f6345e0b.tar.bz2
scummvm-rg350-bb43f5c0f4a1e06129ed81a9f0e70862f6345e0b.zip
SCUMM HE: Fix Moonbase distortion codec
Diffstat (limited to 'engines')
-rw-r--r--engines/scumm/he/moonbase/distortion.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/scumm/he/moonbase/distortion.cpp b/engines/scumm/he/moonbase/distortion.cpp
index 0bef2459b5..6b637d0565 100644
--- a/engines/scumm/he/moonbase/distortion.cpp
+++ b/engines/scumm/he/moonbase/distortion.cpp
@@ -152,7 +152,7 @@ void Moonbase::blitDistortion(byte *bufferData, const int bufferWidth, const int
clippedDstRect.clip(dstOperation);
int subBlockCount = READ_LE_UINT16(dataStream + kBptHeaderSize + 4);
- byte *subBlockStream = dataStream + kBptHeaderSize + READ_LE_UINT16(dataStream) + 2;
+ byte *subBlockStream = dataStream + kBptHeaderSize + READ_LE_UINT32(dataStream + 4);
int cx1 = clippedDstRect.left;
int cy1 = clippedDstRect.top;
int cx2 = clippedDstRect.right - 1;
@@ -190,7 +190,6 @@ void Moonbase::blitDistortion(byte *bufferData, const int bufferWidth, const int
int src_x = (x + xOffset);
int src_y = (y + yOffset);
- warning("x1: %d y1: %d x2: %d y2: %d", (src_x - l_reach), (src_y - t_reach), (src_x + r_reach), (src_y + b_reach));
Common::Rect srcReach((src_x - l_reach), (src_y - t_reach), (src_x + r_reach), (src_y + b_reach));
Common::Rect srcLimits(srcBitmap.w, srcBitmap.h);