Fix VAR_VOICE_MODE in COMI

svn-id: r13051
This commit is contained in:
Travis Howell 2004-02-25 10:48:35 +00:00
parent 5df1bd8b49
commit 793bc427de
2 changed files with 4 additions and 2 deletions

View File

@ -1483,7 +1483,9 @@ void ScummEngine_v8::o8_kernelGetFunctions() {
// scripts. Probably a wrong push/pop somewhere. For now override to correct value.
array = 658;
ArrayHeader *ah = (ArrayHeader *)getResourceAddress(rtString, readVar(array));
if (!strcmp((char *)ah->data, "Saveload Page") || !strcmp((char *)ah->data, "Object Names"))
if (!strcmp((char *)ah->data, "Text Status"))
push(ConfMan.getBool("subtitles"));
else if (!strcmp((char *)ah->data, "Saveload Page") || !strcmp((char *)ah->data, "Object Names"))
push(1);
else
push(0);

View File

@ -1204,7 +1204,7 @@ void ScummEngine::initScummVars() {
if (_gameId == GID_MONKEY || _gameId == GID_MONKEY_SEGA)
_scummVars[74] = 1225;
if (_version >= 7)
if (_version == 7)
VAR(VAR_VOICE_MODE) = ConfMan.getBool("subtitles");
VAR(VAR_CHARINC) = 4;