aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2009-06-06 17:37:51 +0000
committerEugene Sandulenko2009-06-06 17:37:51 +0000
commitc585366ce934403dc7625de62179c24a10520350 (patch)
treeee8ec1e3a2250213e395aaa00b972caf461f1ec4
parentcf2ad8fd02773677efb34ef93a3300070f12efe9 (diff)
downloadscummvm-rg350-c585366ce934403dc7625de62179c24a10520350.tar.gz
scummvm-rg350-c585366ce934403dc7625de62179c24a10520350.tar.bz2
scummvm-rg350-c585366ce934403dc7625de62179c24a10520350.zip
Decrease number of free memory pages to realistic value
svn-id: r41238
-rw-r--r--engines/agi/cycle.cpp2
-rw-r--r--engines/agi/saveload.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/agi/cycle.cpp b/engines/agi/cycle.cpp
index f3828e00d2..6ab1169bbe 100644
--- a/engines/agi/cycle.cpp
+++ b/engines/agi/cycle.cpp
@@ -432,7 +432,7 @@ int AgiEngine::runGame() {
break;
}
- setvar(vFreePages, 255); // Set amount of free memory to the maximum value
+ setvar(vFreePages, 180); // Set amount of free memory to realistic value
setvar(vMaxInputChars, 38);
_game.inputMode = INPUT_NONE;
_game.inputEnabled = 0;
diff --git a/engines/agi/saveload.cpp b/engines/agi/saveload.cpp
index 2130473810..c8dccf7df3 100644
--- a/engines/agi/saveload.cpp
+++ b/engines/agi/saveload.cpp
@@ -304,7 +304,7 @@ int AgiEngine::loadGame(const char *fileName, bool checkId) {
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)
+ setvar(vFreePages, 180); // Set amount of free memory to realistic value (Overwriting the just loaded value)
_game.horizon = in->readSint16BE();
_game.lineStatus = in->readSint16BE();