aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2006-05-25 21:16:49 +0000
committerEugene Sandulenko2006-05-25 21:16:49 +0000
commitd05138fd9cc694799dcbb8f2b91420576df2238a (patch)
tree9f03475d6863d563eafba2991759bdb5c121a30b /engines
parent5f113b2dc23912b23097131e64680dafa3dcd49a (diff)
downloadscummvm-rg350-d05138fd9cc694799dcbb8f2b91420576df2238a.tar.gz
scummvm-rg350-d05138fd9cc694799dcbb8f2b91420576df2238a.tar.bz2
scummvm-rg350-d05138fd9cc694799dcbb8f2b91420576df2238a.zip
- Fix typo in debug level Scripts.
- Show scripts execution if requested svn-id: r22637
Diffstat (limited to 'engines')
-rw-r--r--engines/agi/agi.cpp2
-rw-r--r--engines/agi/op_cmd.cpp6
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