[Scummvm-cvs-logs] CVS: tools descumm3.cpp,1.25,1.26

Jonathan Gray khalek at users.sourceforge.net
Wed Apr 30 05:28:07 CEST 2003


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

Modified Files:
	descumm3.cpp 
Log Message:
make variable bit reads more readable

Index: descumm3.cpp
===================================================================
RCS file: /cvsroot/scummvm/tools/descumm3.cpp,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- descumm3.cpp	30 Apr 2003 10:14:27 -0000	1.25
+++ descumm3.cpp	30 Apr 2003 12:27:18 -0000	1.26
@@ -192,7 +192,12 @@
 
 	int i = get_word();
 
-	sprintf(buf, "%s[%d", get_num_string(i), i & 0xFFF);
+	// fIXME this should be for zak256 as well
+	if ((i & 0x8000) && (GF_UNBLOCKED)) 
+		sprintf(buf, "Var[%d Bit %d", (i & 0x0FFF) >> 4, i & 0x000F);
+	else
+		sprintf(buf, "%s[%d", get_num_string(i), i & 0xFFF);
+
 	buf2 = strchr(buf, 0);
 
 	if (i & 0x2000) {





More information about the Scummvm-git-logs mailing list