From 5e966f88e97af937e71b8da0c33fddc5ed874eee Mon Sep 17 00:00:00 2001 From: James Brown Date: Sun, 10 Nov 2002 12:22:22 +0000 Subject: Implement Indy3 opcode - this fixes the 'walking to car' portion of the first section of the game svn-id: r5482 --- scumm/script_v1.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/scumm/script_v1.cpp b/scumm/script_v1.cpp index 4058958725..92a1a41873 100644 --- a/scumm/script_v1.cpp +++ b/scumm/script_v1.cpp @@ -680,7 +680,6 @@ void Scumm::o5_delay() delay |= fetchScriptByte() << 16; vm.slot[_currentScript].delay = delay; vm.slot[_currentScript].status = 1; - o5_breakHere(); } @@ -1929,8 +1928,17 @@ void Scumm::o5_soundKludge() int16 items[15]; int i; - if (_features & GF_SMALL_HEADER) // Is dummy function in - return; // SCUMM V3 + if (_features & GF_SMALL_HEADER) { // Is WaitForSentence in 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++) items[i] = 0; -- cgit v1.2.3