From 7b4ab3c42655207e4d7cf2174703c56b22fc27c3 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 30 May 2016 22:08:26 +0200 Subject: SCUMM HE: Fix int32 vs int --- engines/scumm/he/moonbase/moonbase_fow.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/engines/scumm/he/moonbase/moonbase_fow.cpp b/engines/scumm/he/moonbase/moonbase_fow.cpp index 0c29d5709e..2cd17a86fa 100644 --- a/engines/scumm/he/moonbase/moonbase_fow.cpp +++ b/engines/scumm/he/moonbase/moonbase_fow.cpp @@ -225,16 +225,16 @@ void Moonbase::setFOWInfo(int fowInfoArray, int downDim, int acrossDim, int view int dataOffset = (_fowVw * 3); int dataOffset2 = (dataOffset * 2); - int *pOutterRenderTableA = _fowRenderTable; - int *pOutterRenderTableB = pOutterRenderTableA + dataOffset; + int32 *pOutterRenderTableA = _fowRenderTable; + int32 *pOutterRenderTableB = pOutterRenderTableA + dataOffset; for (int ay = 0; ay < _fowVh; ay++) { int l = il; int c = ic; int r = ir; - int *pRenderTableA = pOutterRenderTableA; - int *pRenderTableB = pOutterRenderTableB; + int32 *pRenderTableA = pOutterRenderTableA; + int32 *pRenderTableB = pOutterRenderTableB; pOutterRenderTableA += dataOffset2; pOutterRenderTableB += dataOffset2; @@ -358,7 +358,7 @@ void Moonbase::renderFOW(uint8 *destSurface, int dstPitch, int dstType, int dstw if (!_fowImage) return; - const int *pOutterRenderTable = _fowRenderTable; + const int32 *pOutterRenderTable = _fowRenderTable; int ixPos = ((_fowVtx1 * _fowTileW) - _fowMvx) + _fowDrawX; int yPos = ((_fowVty1 * _fowTileH) - _fowMvy) + _fowDrawY; int dataOffset = _fowVw * 3; @@ -370,7 +370,7 @@ void Moonbase::renderFOW(uint8 *destSurface, int dstPitch, int dstType, int dstw int real_yPos = yPos; for (int i = 0; i < 2; i++) { - const int *pRenderTable = pOutterRenderTable; + const int32 *pRenderTable = pOutterRenderTable; pOutterRenderTable += dataOffset; int xPos = ixPos; -- cgit v1.2.3