From 816b40ebf8c653f4c3f898ae4697ea85f5fe015f Mon Sep 17 00:00:00 2001 From: athrxx Date: Sun, 6 Nov 2011 17:53:52 +0100 Subject: KYRA: (EOB) - add debugger, etc. - add basic debugger support - fix several minor bugs --- engines/kyra/sprites_eob.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/kyra/sprites_eob.cpp') diff --git a/engines/kyra/sprites_eob.cpp b/engines/kyra/sprites_eob.cpp index eca053017c..2dc9405f72 100644 --- a/engines/kyra/sprites_eob.cpp +++ b/engines/kyra/sprites_eob.cpp @@ -438,7 +438,7 @@ void EobCoreEngine::drawBlockItems(int index) { } int8 scaleSteps = (int8)_dscItemScaleIndex[(_dscDimMap[index] << 2) + ps]; - if (flg & 8 && ps < 2 && scaleSteps) { + if ((flg & 8) && ps < 2 && scaleSteps) { tile2 = _dscItemTileIndex[index]; if (tile2 != -1) setLevelShapesDim(tile2, _shpDmX1, _shpDmX2, 5); @@ -447,7 +447,7 @@ void EobCoreEngine::drawBlockItems(int index) { if (scaleSteps >= 0) { const uint8 *shp = _screen->scaleShape(_dscItemShapeMap[itm->icon] < _numLargeItemShapes ? _largeItemShapes[_dscItemShapeMap[itm->icon]] : (_dscItemShapeMap[itm->icon] < 15 ? 0 : _smallItemShapes[_dscItemShapeMap[itm->icon] - 15]), scaleSteps); - x = x + itemPosFin[o & 7] - (shp[2] << 2); + x = x + (itemPosFin[o & 7] << 1) - ((shp[2] << 3) >> 1); y -= shp[1]; if (itm->pos != 8) -- cgit v1.2.3