aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2009-01-03 10:43:07 +0000
committerPaul Gilbert2009-01-03 10:43:07 +0000
commita45e25620ddda968e742cb0ba9fe90f071ae14f5 (patch)
tree7b199fc67502679263f6fbe5950da4f0daaccd7b /engines
parentedd09972c09d84784ba19faf7b036135623f19af (diff)
downloadscummvm-rg350-a45e25620ddda968e742cb0ba9fe90f071ae14f5.tar.gz
scummvm-rg350-a45e25620ddda968e742cb0ba9fe90f071ae14f5.tar.bz2
scummvm-rg350-a45e25620ddda968e742cb0ba9fe90f071ae14f5.zip
Changed the debugger 'schedule' command to be able to list the schedule, even for currently disabled NPCs
svn-id: r35693
Diffstat (limited to 'engines')
-rw-r--r--engines/lure/debugger.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/lure/debugger.cpp b/engines/lure/debugger.cpp
index 5eeb42d4a9..7e8b8a16ec 100644
--- a/engines/lure/debugger.cpp
+++ b/engines/lure/debugger.cpp
@@ -351,6 +351,11 @@ bool Debugger::cmd_hotspot(int argc, const char **argv) {
DebugPrintf("Deactivated\n");
} else {
+ if (strcmp(argv[2], "schedule") == 0) {
+ // List any current schedule for the character
+ hs->npcSchedule.list(buffer);
+ DebugPrintf("%s", buffer);
+ }
if (!h)
DebugPrintf("The specified hotspot is not currently active\n");
else if (strcmp(argv[2], "paths") == 0) {
@@ -358,11 +363,6 @@ bool Debugger::cmd_hotspot(int argc, const char **argv) {
h->pathFinder().list(buffer);
DebugPrintf("%s", buffer);
}
- else if (strcmp(argv[2], "schedule") == 0) {
- // List any current schedule for the character
- h->currentActions().list(buffer);
- DebugPrintf("%s", buffer);
- }
else if (strcmp(argv[2], "pixels") == 0) {
// List the pixel data for the hotspot
HotspotAnimData &pData = h->anim();