From a45e25620ddda968e742cb0ba9fe90f071ae14f5 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 3 Jan 2009 10:43:07 +0000 Subject: Changed the debugger 'schedule' command to be able to list the schedule, even for currently disabled NPCs svn-id: r35693 --- engines/lure/debugger.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'engines') 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(); -- cgit v1.2.3