diff options
author | Filippos Karapetis | 2008-05-17 14:47:30 +0000 |
---|---|---|
committer | Filippos Karapetis | 2008-05-17 14:47:30 +0000 |
commit | 84610606c127acf70d3faf166c4919d9eecbb625 (patch) | |
tree | b3ab8b31537e2c56a6b4c74694696ab263cba225 /engines/made/script.cpp | |
parent | 25e7e1999a41bd58680933d1435a6b50f83c5788 (diff) | |
download | scummvm-rg350-84610606c127acf70d3faf166c4919d9eecbb625.tar.gz scummvm-rg350-84610606c127acf70d3faf166c4919d9eecbb625.tar.bz2 scummvm-rg350-84610606c127acf70d3faf166c4919d9eecbb625.zip |
Slight cleanup and small bugfix for dumpScript()'s cmd_call
svn-id: r32151
Diffstat (limited to 'engines/made/script.cpp')
-rw-r--r-- | engines/made/script.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/engines/made/script.cpp b/engines/made/script.cpp index 37e6f8536c..b14798bab6 100644 --- a/engines/made/script.cpp +++ b/engines/made/script.cpp @@ -215,13 +215,9 @@ void ScriptInterpreter::dumpScript(int16 scriptObjectIndex) { //(this->*_commands[opcode - 1].proc)(); // Handle command data - if (!strcmp(_commands[opcode - 1].desc, "cmd_branchTrue")) { - 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")) { + 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_loadConstant")) { @@ -234,6 +230,7 @@ void ScriptInterpreter::dumpScript(int16 scriptObjectIndex) { 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") || |