[Scummvm-cvs-logs] SF.net SVN: scummvm:[40595] scummvm/trunk/engines/cruise/saveload.cpp

dreammaster at users.sourceforge.net dreammaster at users.sourceforge.net
Fri May 15 09:03:56 CEST 2009


Revision: 40595
          http://scummvm.svn.sourceforge.net/scummvm/?rev=40595&view=rev
Author:   dreammaster
Date:     2009-05-15 07:03:56 +0000 (Fri, 15 May 2009)

Log Message:
-----------
Bugfix to saving the width of a cached background area - the previous code was, for some reason, saving the width divided by 2.. this was causing corruptions during reload for cached areas with an odd horizontal width

Modified Paths:
--------------
    scummvm/trunk/engines/cruise/saveload.cpp

Modified: scummvm/trunk/engines/cruise/saveload.cpp
===================================================================
--- scummvm/trunk/engines/cruise/saveload.cpp	2009-05-15 06:46:56 UTC (rev 40594)
+++ scummvm/trunk/engines/cruise/saveload.cpp	2009-05-15 07:03:56 UTC (rev 40595)
@@ -459,11 +459,7 @@
 		s.syncAsSint16LE(t->scriptNumber);
 		s.syncAsSint16LE(t->scriptOverlayIdx);
 		s.syncAsUint32LE(dummyLong);
-
-		int tmp = t->saveWidth / 2;
-		s.syncAsSint16LE(tmp);
-		t->saveWidth = tmp * 2;
-
+		s.syncAsSint16LE(t->saveWidth);
 		s.syncAsSint16LE(t->saveHeight);
 		s.syncAsSint16LE(t->saveSize);
 		s.syncAsSint16LE(t->savedX);


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