aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorathrxx2018-11-02 16:26:04 +0100
committerathrxx2018-11-02 16:47:30 +0100
commitfc0f83ef9bb992482ab5d43fcc6eeac42ec8424b (patch)
treea180f9f1d684938fb4536cdbef2c16b4b2f66dee
parent016b251799c3d181fa8e0b3d23a1f2e42967e59f (diff)
downloadscummvm-rg350-fc0f83ef9bb992482ab5d43fcc6eeac42ec8424b.tar.gz
scummvm-rg350-fc0f83ef9bb992482ab5d43fcc6eeac42ec8424b.tar.bz2
scummvm-rg350-fc0f83ef9bb992482ab5d43fcc6eeac42ec8424b.zip
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.
-rw-r--r--engines/kyra/eobcommon.cpp7
1 files changed, 6 insertions, 1 deletions
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);