aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2009-01-27 10:27:07 +0000
committerPaul Gilbert2009-01-27 10:27:07 +0000
commit6ef26264f46b26a2d479d6de2a91cbb19f415cfe (patch)
treec5fcebfaabd001ecf1b7b21f4c8357ea2f4446e5 /engines
parentf9d0d2a44a726f417911adfb03aee9caf22adebf (diff)
downloadscummvm-rg350-6ef26264f46b26a2d479d6de2a91cbb19f415cfe.tar.gz
scummvm-rg350-6ef26264f46b26a2d479d6de2a91cbb19f415cfe.tar.bz2
scummvm-rg350-6ef26264f46b26a2d479d6de2a91cbb19f415cfe.zip
Added a debug subcommand to enable a hotspot's position to be changed
svn-id: r36095
Diffstat (limited to 'engines')
-rw-r--r--engines/lure/debugger.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/engines/lure/debugger.cpp b/engines/lure/debugger.cpp
index 7e8b8a16ec..3abc079a05 100644
--- a/engines/lure/debugger.cpp
+++ b/engines/lure/debugger.cpp
@@ -291,7 +291,7 @@ bool Debugger::cmd_hotspot(int argc, const char **argv) {
Hotspot *h;
if (argc < 2) {
- DebugPrintf("hotspot <hotspot_id> ['paths' | 'schedule' | 'actions' | 'activate' | 'deactivate']\n");
+ DebugPrintf("hotspot <hotspot_id> ['paths' | 'schedule' | 'actions' | 'activate' | 'deactivate' | 'setpos']\n");
return true;
}
hs = res.getHotspot(strToInt(argv[1]));
@@ -372,6 +372,14 @@ bool Debugger::cmd_hotspot(int argc, const char **argv) {
pData.upFrame, pData.downFrame, pData.leftFrame, pData.rightFrame);
DebugPrintf("Current frame = %d of %d\n", h->frameNumber(), h->numFrames());
}
+ else if (strcmp(argv[2], "setpos") == 0) {
+ // Set the hotspot position
+ if (argc >= 5)
+ h->setPosition(strToInt(argv[3]), strToInt(argv[4]));
+ if (argc >= 6)
+ h->setRoomNumber(strToInt(argv[5]));
+ DebugPrintf("Done.\n");
+ }
}
DebugPrintf("\n");