[Scummvm-cvs-logs] SF.net SVN: scummvm: [32151] scummvm/trunk/engines/made/script.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Sat May 17 16:47:31 CEST 2008
Revision: 32151
http://scummvm.svn.sourceforge.net/scummvm/?rev=32151&view=rev
Author: thebluegr
Date: 2008-05-17 07:47:30 -0700 (Sat, 17 May 2008)
Log Message:
-----------
Slight cleanup and small bugfix for dumpScript()'s cmd_call
Modified Paths:
--------------
scummvm/trunk/engines/made/script.cpp
Modified: scummvm/trunk/engines/made/script.cpp
===================================================================
--- scummvm/trunk/engines/made/script.cpp 2008-05-17 13:35:57 UTC (rev 32150)
+++ scummvm/trunk/engines/made/script.cpp 2008-05-17 14:47:30 UTC (rev 32151)
@@ -215,15 +215,11 @@
//(this->*_commands[opcode - 1].proc)();
// Handle command data
- if (!strcmp(_commands[opcode - 1].desc, "cmd_branchTrue")) {
+ if (!strcmp(_commands[opcode - 1].desc, "cmd_branchTrue") ||
+ !strcmp(_commands[opcode - 1].desc, "cmd_branchFalse") ||
+ !strcmp(_commands[opcode - 1].desc, "cmd_branch")) {
val = readInt16();
printf("Offset = %04X\n", val);
- } else if (!strcmp(_commands[opcode - 1].desc, "cmd_branchFalse")) {
- val = readInt16();
- printf("Offset = %04X\n", val);
- } else if (!strcmp(_commands[opcode - 1].desc, "cmd_branch")) {
- val = readInt16();
- printf("Offset = %04X\n", val);
} else if (!strcmp(_commands[opcode - 1].desc, "cmd_loadConstant")) {
val = readInt16();
printf("Constant = %04X\n", val);
@@ -234,6 +230,7 @@
val = readInt16();
printf("Variable = %04X\n", val);
} else if (!strcmp(_commands[opcode - 1].desc, "cmd_call")) {
+ /*byte argc = */readByte();
// TODO
printf("TODO\n");
} else if (!strcmp(_commands[opcode - 1].desc, "cmd_arg") ||
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