aboutsummaryrefslogtreecommitdiff
path: root/engines/cryo/eden.cpp
diff options
context:
space:
mode:
authorStrangerke2017-01-24 23:52:57 +0100
committerEugene Sandulenko2017-01-25 22:42:27 +0100
commita8a142cfe4521bae210cc4a7c7b4891030d1de39 (patch)
tree73e41c576aacbb56a1f5e1a9709fd606664f9a93 /engines/cryo/eden.cpp
parent0e34cec17a6fbd8944c485929b6746e18ce56913 (diff)
downloadscummvm-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.cpp14
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;