From 84610606c127acf70d3faf166c4919d9eecbb625 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sat, 17 May 2008 14:47:30 +0000 Subject: [PATCH] Slight cleanup and small bugfix for dumpScript()'s cmd_call svn-id: r32151 --- engines/made/script.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/engines/made/script.cpp b/engines/made/script.cpp index 37e6f8536cb..b14798bab6b 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") ||