aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/console.cpp
diff options
context:
space:
mode:
authorBastien Bouclet2016-08-05 19:33:45 +0200
committerEugene Sandulenko2017-07-03 08:50:10 +0200
commit6b988670e89b01c554495058f9992bc7b8e25a2d (patch)
tree8dc27616122a56e87404e6a7443822433bff7e3a /engines/mohawk/console.cpp
parent23bbf05c9162e8126df21794b08eb953d65d057e (diff)
downloadscummvm-rg350-6b988670e89b01c554495058f9992bc7b8e25a2d.tar.gz
scummvm-rg350-6b988670e89b01c554495058f9992bc7b8e25a2d.tar.bz2
scummvm-rg350-6b988670e89b01c554495058f9992bc7b8e25a2d.zip
MOHAWK: Turn the active hotspot into a pointer
Diffstat (limited to 'engines/mohawk/console.cpp')
-rw-r--r--engines/mohawk/console.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/mohawk/console.cpp b/engines/mohawk/console.cpp
index 966929b4ef..95a2064f48 100644
--- a/engines/mohawk/console.cpp
+++ b/engines/mohawk/console.cpp
@@ -513,15 +513,16 @@ bool RivenConsole::Cmd_Hotspots(int argc, const char **argv) {
debugPrintf("Current card (%d) has %d hotspots:\n", _vm->getCurCard()->getId(), _vm->_hotspots.size());
for (uint16 i = 0; i < _vm->_hotspots.size(); i++) {
- debugPrintf("Hotspot %d, index %d, BLST ID %d (", i, _vm->_hotspots[i]->index, _vm->_hotspots[i]->blstID);
+ RivenHotspot *hotspot = _vm->_hotspots[i];
+ debugPrintf("Hotspot %d, index %d, BLST ID %d (", i, hotspot->index, hotspot->blstID);
- if (_vm->_hotspots[i]->enabled)
+ if (hotspot->enabled)
debugPrintf("enabled");
else
debugPrintf("disabled");
- debugPrintf(") - (%d, %d, %d, %d)\n", _vm->_hotspots[i]->rect.left, _vm->_hotspots[i]->rect.top, _vm->_hotspots[i]->rect.right, _vm->_hotspots[i]->rect.bottom);
- debugPrintf(" Name = %s\n", _vm->getHotspotName(i).c_str());
+ debugPrintf(") - (%d, %d, %d, %d)\n", hotspot->rect.left, hotspot->rect.top, hotspot->rect.right, hotspot->rect.bottom);
+ debugPrintf(" Name = %s\n", _vm->getHotspotName(hotspot).c_str());
}
return true;