[Scummvm-cvs-logs] CVS: tools descumm.cpp,1.49,1.50

Max Horn fingolfin at users.sourceforge.net
Wed May 21 16:07:06 CEST 2003


Update of /cvsroot/scummvm/tools
In directory sc8-pr-cvs1:/tmp/cvs-serv23649

Modified Files:
	descumm.cpp 
Log Message:
fixed v2 verbops

Index: descumm.cpp
===================================================================
RCS file: /cvsroot/scummvm/tools/descumm.cpp,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- descumm.cpp	21 May 2003 20:55:05 -0000	1.49
+++ descumm.cpp	21 May 2003 23:06:44 -0000	1.50
@@ -1160,7 +1160,7 @@
 {
 	int subop = get_byte();
 
-	buf = do_tok(buf, "VerbOps[", ANOLASTPAREN);
+	buf = do_tok(buf, "VerbOps", ANOLASTPAREN);
 	switch (subop) {
 		case 0:
 			buf = do_tok(buf, "Delete", (opcode & 0x80) ? A1V : A1B);
@@ -1169,9 +1169,10 @@
 			buf = do_tok(buf, "State", A1B | A2B);
 			break;
 		default:
-			buf = do_tok(buf, "New", A1B | A2B | ((opcode & 0x80) ? A3V : A3B) | A4B | A5ASCII);
+			buf += sprintf(buf, "New-%d", subop);
+			buf = do_tok(buf, "", A1B | A2B | ((opcode & 0x80) ? A3V : A3B) | A4B | A5ASCII);
 	}
-	
+	strecpy(buf, ")");
 }
 
 void do_verbops(char *buf, byte opcode)
@@ -1243,7 +1244,7 @@
 		}
 
 	} while (1);
-	strecpy(buf, "]);");
+	strecpy(buf, "])");
 }
 
 void do_print_ego(char *buf, byte opcode)





More information about the Scummvm-git-logs mailing list