diff options
-rw-r--r-- | engines/agi/agi.cpp | 2 | ||||
-rw-r--r-- | engines/agi/op_cmd.cpp | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/engines/agi/agi.cpp b/engines/agi/agi.cpp index 1ce4dd03a0..f03c403e0f 100644 --- a/engines/agi/agi.cpp +++ b/engines/agi/agi.cpp @@ -465,7 +465,7 @@ AgiEngine::AgiEngine(OSystem * syst) : Engine(syst) { Common::addSpecialDebugLevel(kDebugLevelInventory, "Inventory", "Inventory debugging"); Common::addSpecialDebugLevel(kDebugLevelInput, "Input", "Input events debugging"); Common::addSpecialDebugLevel(kDebugLevelMenu, "Menu", "Menu debugging"); - Common::addSpecialDebugLevel(kDebugLevelScripts, "Scrpits", "Scripts debugging"); + Common::addSpecialDebugLevel(kDebugLevelScripts, "Scripts", "Scripts debugging"); Common::addSpecialDebugLevel(kDebugLevelSound, "Sound", "Sound debugging"); Common::addSpecialDebugLevel(kDebugLevelText, "Text", "Text output debugging"); diff --git a/engines/agi/op_cmd.cpp b/engines/agi/op_cmd.cpp index 94b27ef368..a2bdee438d 100644 --- a/engines/agi/op_cmd.cpp +++ b/engines/agi/op_cmd.cpp @@ -1474,6 +1474,8 @@ int run_logic(int n) { num = logic_names_cmd[op].num_args; memmove(p, code + ip, num); memset(p + num, 0, CMD_BSIZE - num); + + debugC(2, kDebugLevelScripts, "%s(%d %d %d)", logic_names_cmd[op].name, p[0], p[1], p[2]); agi_command[op] (p); ip += num; } @@ -1486,8 +1488,8 @@ int run_logic(int n) { } void execute_agi_command(uint8 op, uint8 *p) { - debugC(2, kDebugLevelScripts, "%s %d %d %d", logic_names_cmd[op].name, p[0], p[1], p[2]); + debugC(2, kDebugLevelScripts, "%s(%d %d %d)", logic_names_cmd[op].name, p[0], p[1], p[2]); agi_command[op] (p); } -} // End of namespace Agi +} // End of namespace Agi |