From fc0f83ef9bb992482ab5d43fcc6eeac42ec8424b Mon Sep 17 00:00:00 2001 From: athrxx Date: Fri, 2 Nov 2018 16:26:04 +0100 Subject: KYRA: fix EOB II sound glitch This is a workaround for a premature sfx (original code/script bug) in a specific sequence in catacombs level 2. --- engines/kyra/eobcommon.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/kyra/eobcommon.cpp b/engines/kyra/eobcommon.cpp index b8887528e4..d5327c859d 100644 --- a/engines/kyra/eobcommon.cpp +++ b/engines/kyra/eobcommon.cpp @@ -1397,7 +1397,12 @@ void EoBCoreEngine::initDialogueSequence() { gui_updateControls(); //_allowSkip = true; - snd_stopSound(); + // WORKAROUND for bug in the original code (all platforms). Sequence sound would be terminated prematurely. + if (_flags.gameID == GI_EOB2 && _currentLevel == 2 && _currentBlock == 654) + _sound->stopAllSoundEffects(); + else + snd_stopSound(); + Common::SeekableReadStream *s = _res->createReadStream("TEXT.DAT"); _screen->loadFileDataToPage(s, 5, 32000); _txt->setupField(9, 0); -- cgit v1.2.3