[Scummvm-cvs-logs] SF.net SVN: scummvm: [29819] scummvm/trunk/engines/agi/preagi_winnie.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Mon Dec 10 21:19:54 CET 2007


Revision: 29819
          http://scummvm.svn.sourceforge.net/scummvm/?rev=29819&view=rev
Author:   thebluegr
Date:     2007-12-10 12:19:53 -0800 (Mon, 10 Dec 2007)

Log Message:
-----------
Save game header is 32 bits, not 16

Modified Paths:
--------------
    scummvm/trunk/engines/agi/preagi_winnie.cpp

Modified: scummvm/trunk/engines/agi/preagi_winnie.cpp
===================================================================
--- scummvm/trunk/engines/agi/preagi_winnie.cpp	2007-12-10 18:59:18 UTC (rev 29818)
+++ scummvm/trunk/engines/agi/preagi_winnie.cpp	2007-12-10 20:19:53 UTC (rev 29819)
@@ -1255,10 +1255,10 @@
 		// Note that the original saves variables as 16-bit integers, but only 8 bits are used.
 		// Since we read the save file data as little-endian, we skip the first byte of each
 		// variable
+		
+		infile->seek(0);					// Jump back to the beginning of the file
 
-		// First 16 bits are an unused field, and they have already been read from the 
-		// header check above
-
+		infile->readUint16LE();				// skip unused field
 		infile->readByte();					// first 8 bits of fSound
 		_game.fSound = infile->readByte();
 		infile->readByte();					// first 8 bits of nMoves


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list