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.

svn-id: r30136
This commit is contained in:
Kari Salminen 2008-01-02 00:35:32 +00:00
parent f72b094c69
commit 9db76278ef
2 changed files with 3 additions and 0 deletions

View File

@ -387,6 +387,7 @@ int AgiEngine::runGame() {
break;
}
setvar(vFreePages, 255); // Set amount of free memory to the maximum value
setvar(vMaxInputChars, 38);
_game.inputMode = INPUT_NONE;
_game.inputEnabled = 0;

View File

@ -264,6 +264,8 @@ 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)
_game.horizon = in->readSint16BE();
_game.lineStatus = in->readSint16BE();
_game.lineUserInput = in->readSint16BE();