diff options
Diffstat (limited to 'engines/kyra/sprites_eob.cpp')
-rw-r--r-- | engines/kyra/sprites_eob.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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) |