diff options
author | Strangerke | 2017-01-24 23:52:57 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2017-01-25 22:42:27 +0100 |
commit | a8a142cfe4521bae210cc4a7c7b4891030d1de39 (patch) | |
tree | 73e41c576aacbb56a1f5e1a9709fd606664f9a93 /engines/cryo/eden.cpp | |
parent | 0e34cec17a6fbd8944c485929b6746e18ce56913 (diff) | |
download | scummvm-rg350-a8a142cfe4521bae210cc4a7c7b4891030d1de39.tar.gz scummvm-rg350-a8a142cfe4521bae210cc4a7c7b4891030d1de39.tar.bz2 scummvm-rg350-a8a142cfe4521bae210cc4a7c7b4891030d1de39.zip |
CRYO: Introduce debugger, remove console initialisation
Diffstat (limited to 'engines/cryo/eden.cpp')
-rw-r--r-- | engines/cryo/eden.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/engines/cryo/eden.cpp b/engines/cryo/eden.cpp index 2c075c69f3..3b608b5eed 100644 --- a/engines/cryo/eden.cpp +++ b/engines/cryo/eden.cpp @@ -5380,12 +5380,14 @@ void EdenGame::displaySingleRoom(Room *room) { x += _globals->_roomBaseX; ex += _globals->_roomBaseX; debug("add hotspot at %3d:%3d - %3d:%3d, action = %d", x, y, ex, ey, b0); -#ifdef EDEN_DEBUG - for (int iii = x; iii < ex; iii++) - _mainViewBuf[y * 640 + iii] = _mainViewBuf[ey * 640 + iii] = (iii % 2) ? 0 : 255; - for (int iii = y; iii < ey; iii++) - _mainViewBuf[iii * 640 + x] = _mainViewBuf[iii * 640 + ex] = (iii % 2) ? 0 : 255; -#endif + + if (_vm->_showHotspots) { + for (int iii = x; iii < ex; iii++) + _mainViewBuf[y * 640 + iii] = _mainViewBuf[ey * 640 + iii] = (iii % 2) ? 0 : 255; + for (int iii = y; iii < ey; iii++) + _mainViewBuf[iii * 640 + x] = _mainViewBuf[iii * 640 + ex] = (iii % 2) ? 0 : 255; + } + icon->sx = x; icon->sy = y; icon->ex = ex; |