From 631797d7e004bf1bdddd6c129694307b6a19e4f5 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Mon, 16 Jan 2006 09:20:27 +0000 Subject: Match sizes of original versions, to avoid possible overflows. svn-id: r20052 --- scumm/wiz_he.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'scumm/wiz_he.cpp') diff --git a/scumm/wiz_he.cpp b/scumm/wiz_he.cpp index 408e9544c4..f2b4916338 100644 --- a/scumm/wiz_he.cpp +++ b/scumm/wiz_he.cpp @@ -1355,13 +1355,13 @@ void Wiz::flushWizBuffer() { _imagesNum = 0; } -void Wiz::loadImgSpot(int resId, int state, int16 &x, int16 &y) { +void Wiz::loadImgSpot(int resId, int state, int32 &x, int32 &y) { uint8 *dataPtr = _vm->getResourceAddress(rtImage, resId); assert(dataPtr); uint8 *spotPtr = _vm->findWrappedBlock(MKID('SPOT'), dataPtr, state, 0); if (spotPtr) { - x = (int16)READ_LE_UINT32(spotPtr + 0); - y = (int16)READ_LE_UINT32(spotPtr + 4); + x = READ_LE_UINT32(spotPtr + 0); + y = READ_LE_UINT32(spotPtr + 4); } else { x = 0; y = 0; @@ -1369,7 +1369,7 @@ void Wiz::loadImgSpot(int resId, int state, int16 &x, int16 &y) { } void Wiz::loadWizCursor(int resId) { - int16 x, y; + int32 x, y; loadImgSpot(resId, 0, x, y); if (x < 0) { x = 0; @@ -1733,7 +1733,7 @@ void Wiz::processWizImage(const WizParameters *params) { char buf[512]; unsigned int i; - debug(0, "processWizImage: processMode %d", params->processMode); + debug(5, "processWizImage: processMode %d", params->processMode); switch (params->processMode) { case 0: // Used in racedemo -- cgit v1.2.3