diff options
author | Eugene Sandulenko | 2016-05-10 16:10:55 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-05-10 18:07:35 +0200 |
commit | e61700f1b22e492cf9f33a1b94be2c928c0c9574 (patch) | |
tree | 158d9d022162f7acb34a56bc375375f2a6ef7598 /engines | |
parent | 0d356d1c666620fc01d60872edb03ee55b046689 (diff) | |
download | scummvm-rg350-e61700f1b22e492cf9f33a1b94be2c928c0c9574.tar.gz scummvm-rg350-e61700f1b22e492cf9f33a1b94be2c928c0c9574.tar.bz2 scummvm-rg350-e61700f1b22e492cf9f33a1b94be2c928c0c9574.zip |
SCUMM HE: Proper place for the FOW drawing call
Diffstat (limited to 'engines')
-rw-r--r-- | engines/scumm/he/wiz_he.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/scumm/he/wiz_he.cpp b/engines/scumm/he/wiz_he.cpp index 9a5be1cc5f..2b1e6d1314 100644 --- a/engines/scumm/he/wiz_he.cpp +++ b/engines/scumm/he/wiz_he.cpp @@ -1571,8 +1571,15 @@ uint8 *Wiz::drawWizImage(int resNum, int state, int maskNum, int maskState, int transColor = (trns == NULL) ? _vm->VAR(_vm->VAR_WIZ_TCOLOR) : -1; } - drawWizImageEx(dst, dataPtr, mask, dstPitch, dstType, cw, ch, x1, y1, width, height, - state, &rScreen, flags, palPtr, transColor, _vm->_bytesPerPixel, xmapPtr, conditionBits); + if (_vm->_game.id == GID_MOONBASE && + resNum == _vm->_moonbase->_fowSentinelImage && + state == _vm->_moonbase->_fowSentinelState && + conditionBits == _vm->_moonbase->_fowSentinelConditionBits) { + _vm->_moonbase->renderFOW(dst, dstPitch, dstType, cw, ch, flags); + } else { + drawWizImageEx(dst, dataPtr, mask, dstPitch, dstType, cw, ch, x1, y1, width, height, + state, &rScreen, flags, palPtr, transColor, _vm->_bytesPerPixel, xmapPtr, conditionBits); + } if (!(flags & kWIFBlitToMemBuffer) && dstResNum == 0) { Common::Rect rImage(x1, y1, x1 + width, y1 + height); @@ -2306,13 +2313,6 @@ void Wiz::displayWizComplexImage(const WizParameters *params) { if (flags & kWIFIsPolygon) { drawWizPolygon(params->img.resNum, state, po_x, flags, shadow, dstResNum, palette); } else { - if (_vm->_game.id == GID_MOONBASE) { - if (params->img.resNum == _vm->_moonbase->_fowSentinelImage && - state == _vm->_moonbase->_fowSentinelState && - params->conditionBits == _vm->_moonbase->_fowSentinelConditionBits) - _vm->_moonbase->renderFOW(0, 0, 0, 0, 0, flags); - } - drawWizImage(params->img.resNum, state, 0, 0, po_x, po_y, params->img.zorder, shadow, zbuffer, r, flags, dstResNum, _vm->getHEPaletteSlot(palette), params->conditionBits); } } |