[Scummvm-cvs-logs] SF.net SVN: scummvm: [22637] scummvm/trunk/engines/agi

sev at users.sourceforge.net sev at users.sourceforge.net
Thu May 25 14:18:02 CEST 2006


Revision: 22637
Author:   sev
Date:     2006-05-25 14:16:49 -0700 (Thu, 25 May 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=22637&view=rev

Log Message:
-----------
- Fix typo in debug level Scripts.
- Show scripts execution if requested

Modified Paths:
--------------
    scummvm/trunk/engines/agi/agi.cpp
    scummvm/trunk/engines/agi/op_cmd.cpp
Modified: scummvm/trunk/engines/agi/agi.cpp
===================================================================
--- scummvm/trunk/engines/agi/agi.cpp	2006-05-25 20:50:32 UTC (rev 22636)
+++ scummvm/trunk/engines/agi/agi.cpp	2006-05-25 21:16:49 UTC (rev 22637)
@@ -465,7 +465,7 @@
 	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");
 

Modified: scummvm/trunk/engines/agi/op_cmd.cpp
===================================================================
--- scummvm/trunk/engines/agi/op_cmd.cpp	2006-05-25 20:50:32 UTC (rev 22636)
+++ scummvm/trunk/engines/agi/op_cmd.cpp	2006-05-25 21:16:49 UTC (rev 22637)
@@ -1474,6 +1474,8 @@
 			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 @@
 }
 
 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


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the Scummvm-git-logs mailing list