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

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Wed Feb 15 09:32:00 CET 2006


Revision: 20697
Author:   fingolfin
Date:     2006-02-15 09:31:26 -0800 (Wed, 15 Feb 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm?rev=20697&view=rev

Log Message:
-----------
Fix for bug #795214 (MI1: Crash on church entry)

Modified Paths:
--------------
    scummvm/trunk/engines/scumm/saveload.cpp
Modified: scummvm/trunk/engines/scumm/saveload.cpp
===================================================================
--- scummvm/trunk/engines/scumm/saveload.cpp	2006-02-15 00:57:50 UTC (rev 20696)
+++ scummvm/trunk/engines/scumm/saveload.cpp	2006-02-15 17:31:26 UTC (rev 20697)
@@ -275,6 +275,12 @@
 	if (_screenTop < 0)
 		_screenTop = 0;
 
+	// WORKAROUND bug #795214: Object 819 could be set to a state of 1 in old save games
+	// Object 819 is part of the exit of the church and should not be drawn.
+	if (hdr.ver < VER(59) && _gameId == GID_MONKEY_VGA) {
+		putState(819, 0);
+	}
+
 	if (hdr.ver < VER(33) && _version >= 7) {
 		// For a long time, we didn't set these vars to default values.
 		VAR(VAR_DEFAULT_TALK_DELAY) = 60;







More information about the Scummvm-git-logs mailing list