[Scummvm-cvs-logs] CVS: tools descumm.cpp,1.99,1.100

Eugene Sandulenko sev at users.sourceforge.net
Mon Sep 5 19:03:32 CEST 2005


Update of /cvsroot/scummvm/tools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29765

Modified Files:
	descumm.cpp 
Log Message:
Fixed couple bugs and descumm output seems to be correct.


Index: descumm.cpp
===================================================================
RCS file: /cvsroot/scummvm/tools/descumm.cpp,v
retrieving revision 1.99
retrieving revision 1.100
diff -u -d -r1.99 -r1.100
--- descumm.cpp	6 Sep 2005 01:22:23 -0000	1.99
+++ descumm.cpp	6 Sep 2005 02:02:19 -0000	1.100
@@ -1876,7 +1876,10 @@
 		sprintf(buf, "%d", get_byte());
 		buf = strchr(buf, 0);
 	} else if ((opcode & 0x7F) != 0x46) {	/* increment or decrement */
-		buf = get_var_or_word(buf, opcode & 0x80);
+		if (scriptVersion == 0)
+			buf = get_var_or_byte(buf, opcode & 0x80);
+		else
+			buf = get_var_or_word(buf, opcode & 0x80);
 	}
 	strecpy(buf, ";");
 }
@@ -2623,6 +2626,7 @@
 	case 0xBA:
 		//subtract
 		do_varset_code(buf, opcode);
+		break;
 
 	case 0x11:
 	case 0x51:





More information about the Scummvm-git-logs mailing list