aboutsummaryrefslogtreecommitdiff
path: root/engines/lure
diff options
context:
space:
mode:
authorPaul Gilbert2007-02-16 04:50:42 +0000
committerPaul Gilbert2007-02-16 04:50:42 +0000
commit5bd19f022a2c51594b6b5872b44cff3d0b882890 (patch)
treee769ec5f9f6f48f48f97e8b88923a949ecb3c7ea /engines/lure
parent75c74574e8ea91288723ca1830f5f814cb9a566e (diff)
downloadscummvm-rg350-5bd19f022a2c51594b6b5872b44cff3d0b882890.tar.gz
scummvm-rg350-5bd19f022a2c51594b6b5872b44cff3d0b882890.tar.bz2
scummvm-rg350-5bd19f022a2c51594b6b5872b44cff3d0b882890.zip
Added sub-option to hotspot command to allow the activation or deactivation of hotspots
svn-id: r25622
Diffstat (limited to 'engines/lure')
-rw-r--r--engines/lure/debugger.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/engines/lure/debugger.cpp b/engines/lure/debugger.cpp
index d4c0f6718b..c098ca6919 100644
--- a/engines/lure/debugger.cpp
+++ b/engines/lure/debugger.cpp
@@ -275,7 +275,7 @@ bool Debugger::cmd_hotspot(int argc, const char **argv) {
Hotspot *h;
if (argc < 2) {
- DebugPrintf("hotspot <hotspot_id> ['paths' | 'schedule' | 'actions']\n");
+ DebugPrintf("hotspot <hotspot_id> ['paths' | 'schedule' | 'actions' | 'activate' | 'deactivate']\n");
return true;
}
hs = res.getHotspot(strToInt(argv[1]));
@@ -323,6 +323,18 @@ bool Debugger::cmd_hotspot(int argc, const char **argv) {
DebugPrintf("%s - Script %xh\n", actionStr, offset);
}
}
+ } else if (strcmp(argv[2], "activate") == 0) {
+ // Activate the hotspot
+ res.activateHotspot(hs->hotspotId);
+ hs->flags &= !HOTSPOTFLAG_20;
+ DebugPrintf("Activated\n");
+
+ } else if (strcmp(argv[2], "deactivate") == 0) {
+ // Activate the hotspot
+ res.deactivateHotspot(hs->hotspotId);
+ hs->flags |= HOTSPOTFLAG_20;
+ DebugPrintf("Deactivated\n");
+
} else {
if (!h)
DebugPrintf("The specified hotspot is not currently active\n");