diff options
author | Bastien Bouclet | 2016-08-05 08:07:02 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-03 08:50:10 +0200 |
commit | 23bbf05c9162e8126df21794b08eb953d65d057e (patch) | |
tree | 5283789bd4abc14029f156f474ccf33e443d5822 /engines/mohawk/console.cpp | |
parent | 1b062d1e39988388468bb13af97276d5674bbcbe (diff) | |
download | scummvm-rg350-23bbf05c9162e8126df21794b08eb953d65d057e.tar.gz scummvm-rg350-23bbf05c9162e8126df21794b08eb953d65d057e.tar.bz2 scummvm-rg350-23bbf05c9162e8126df21794b08eb953d65d057e.zip |
MOHAWK: Start converting RivenHotspot into a class
Diffstat (limited to 'engines/mohawk/console.cpp')
-rw-r--r-- | engines/mohawk/console.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/mohawk/console.cpp b/engines/mohawk/console.cpp index 9b4d0564e2..966929b4ef 100644 --- a/engines/mohawk/console.cpp +++ b/engines/mohawk/console.cpp @@ -510,17 +510,17 @@ bool RivenConsole::Cmd_ChangeStack(int argc, const char **argv) { } bool RivenConsole::Cmd_Hotspots(int argc, const char **argv) { - debugPrintf("Current card (%d) has %d hotspots:\n", _vm->getCurCard()->getId(), _vm->getHotspotCount()); + debugPrintf("Current card (%d) has %d hotspots:\n", _vm->getCurCard()->getId(), _vm->_hotspots.size()); - for (uint16 i = 0; i < _vm->getHotspotCount(); i++) { - debugPrintf("Hotspot %d, index %d, BLST ID %d (", i, _vm->_hotspots[i].index, _vm->_hotspots[i].blstID); + 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); - if (_vm->_hotspots[i].enabled) + if (_vm->_hotspots[i]->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(") - (%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()); } |