[Scummvm-cvs-logs] SF.net SVN: scummvm: [30137] scummvm/branches/branch-0-11-0/engines/agi

buddha_ at users.sourceforge.net buddha_ at users.sourceforge.net
Wed Jan 2 01:48:19 CET 2008


Revision: 30137
          http://scummvm.svn.sourceforge.net/scummvm/?rev=30137&view=rev
Author:   buddha_
Date:     2008-01-01 16:48:18 -0800 (Tue, 01 Jan 2008)

Log Message:
-----------
Backport of commit #30136: Set amount of free memory (v8 i.e. vFreePages) to maximum value (Also when loading a saved game!). Fixes Gold Rush's help screen and bible passage showing.

Modified Paths:
--------------
    scummvm/branches/branch-0-11-0/engines/agi/cycle.cpp
    scummvm/branches/branch-0-11-0/engines/agi/saveload.cpp

Modified: scummvm/branches/branch-0-11-0/engines/agi/cycle.cpp
===================================================================
--- scummvm/branches/branch-0-11-0/engines/agi/cycle.cpp	2008-01-02 00:35:32 UTC (rev 30136)
+++ scummvm/branches/branch-0-11-0/engines/agi/cycle.cpp	2008-01-02 00:48:18 UTC (rev 30137)
@@ -387,6 +387,7 @@
 			break;
 		}
 
+		setvar(vFreePages, 255); // Set amount of free memory to the maximum value
 		setvar(vMaxInputChars, 38);
 		_game.inputMode = INPUT_NONE;
 		_game.inputEnabled = 0;

Modified: scummvm/branches/branch-0-11-0/engines/agi/saveload.cpp
===================================================================
--- scummvm/branches/branch-0-11-0/engines/agi/saveload.cpp	2008-01-02 00:35:32 UTC (rev 30136)
+++ scummvm/branches/branch-0-11-0/engines/agi/saveload.cpp	2008-01-02 00:48:18 UTC (rev 30137)
@@ -264,6 +264,8 @@
 	for (i = 0; i < MAX_VARS; i++)
 		_game.vars[i] = in->readByte();
 
+	setvar(vFreePages, 255); // Set amount of free memory to the maximum value (Overwriting the just loaded value)
+
 	_game.horizon = in->readSint16BE();
 	_game.lineStatus = in->readSint16BE();
 	_game.lineUserInput = in->readSint16BE();


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