[Scummvm-cvs-logs] CVS: residual smush.cpp,1.13,1.14

Pawel Kolodziejski aquadran at users.sourceforge.net
Sun Feb 1 13:03:01 CET 2004


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

Modified Files:
	smush.cpp 
Log Message:
fixed right offset to flags

Index: smush.cpp
===================================================================
RCS file: /cvsroot/scummvm/residual/smush.cpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- smush.cpp	1 Feb 2004 11:16:54 -0000	1.13
+++ smush.cpp	1 Feb 2004 11:54:27 -0000	1.14
@@ -231,7 +231,7 @@
 
 		warning("Decompressing SMUSH cutscene %s - This may take a minute", filename);
 		fread(inBuf, 4, sizeof(byte), tmp);		//	Header, Method, Flags
-		flags = inBuf[4];
+		flags = inBuf[3];
 		fread(inBuf, 6, sizeof(byte), tmp);		// 	XFlags
 
 		if (((flags & 0x04) != 0) || ((flags & 0x10) != 0))	// Misc
@@ -261,7 +261,7 @@
 
 		for (;;) {
 			if (z.avail_in == 0) {
-				z.next_in = (Bytef*)inBuf;
+				z.next_in = (Bytef *)inBuf;
 				z.avail_in = (uInt)fread(inBuf, 1, sizeof(inBuf), tmp);
 			}
 





More information about the Scummvm-git-logs mailing list