aboutsummaryrefslogtreecommitdiff
path: root/engines/lure
diff options
context:
space:
mode:
Diffstat (limited to 'engines/lure')
-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");