Implement Indy3 opcode - this fixes the 'walking to car' portion of the first section of the game

svn-id: r5482
This commit is contained in:
James Brown 2002-11-10 12:22:22 +00:00
parent 18506e7714
commit 5e966f88e9

View file

@ -680,7 +680,6 @@ void Scumm::o5_delay()
delay |= fetchScriptByte() << 16; delay |= fetchScriptByte() << 16;
vm.slot[_currentScript].delay = delay; vm.slot[_currentScript].delay = delay;
vm.slot[_currentScript].status = 1; vm.slot[_currentScript].status = 1;
o5_breakHere(); o5_breakHere();
} }
@ -1929,8 +1928,17 @@ void Scumm::o5_soundKludge()
int16 items[15]; int16 items[15];
int i; int i;
if (_features & GF_SMALL_HEADER) // Is dummy function in if (_features & GF_SMALL_HEADER) { // Is WaitForSentence in SCUMM V3
return; // SCUMM V3 if (_sentenceNum) {
if (_sentence[_sentenceNum - 1].unk && !isScriptInUse(_vars[VAR_SENTENCE_SCRIPT]))
return;
} else if (!isScriptInUse(_vars[VAR_SENTENCE_SCRIPT])) {
return;
}
_scriptPointer--;
o5_breakHere();
}
for (i = 0; i < 15; i++) for (i = 0; i < 15; i++)
items[i] = 0; items[i] = 0;