diff options
author | athrxx | 2011-11-06 17:53:52 +0100 |
---|---|---|
committer | Johannes Schickel | 2011-12-26 16:18:15 +0100 |
commit | 816b40ebf8c653f4c3f898ae4697ea85f5fe015f (patch) | |
tree | 4df3e6b89eee4770b70dbcf967359b92dfdb7f78 /engines/kyra/sprites_eob.cpp | |
parent | 2448d885e4e331a22e1e468277142155a5ddda87 (diff) | |
download | scummvm-rg350-816b40ebf8c653f4c3f898ae4697ea85f5fe015f.tar.gz scummvm-rg350-816b40ebf8c653f4c3f898ae4697ea85f5fe015f.tar.bz2 scummvm-rg350-816b40ebf8c653f4c3f898ae4697ea85f5fe015f.zip |
KYRA: (EOB) - add debugger, etc.
- add basic debugger support
- fix several minor bugs
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) |