aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/sound.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/scumm/sound.cpp b/scumm/sound.cpp
index 2f7e561942..275f8dd5d3 100644
--- a/scumm/sound.cpp
+++ b/scumm/sound.cpp
@@ -474,10 +474,14 @@ int Sound::startTalkSound(uint32 offset, uint32 b, int mode) {
// Some games frequently assume that starting one sound effect will
// automatically stop any other that may be playing at that time. So
// that is what we do here, but we make an exception for speech.
- //
+ //
// Do any other games than these need this hack?
+ //
+ // HACK: Checking for script 99 in Sam & Max is to keep Conroy's song
+ // from being interrupted.
- if (mode == 1 && (_scumm->_gameId == GID_TENTACLE || _scumm->_gameId == GID_SAMNMAX)) {
+ if (mode == 1 && (_scumm->_gameId == GID_TENTACLE
+ || (_scumm->_gameId == GID_SAMNMAX && !_scumm->isScriptRunning(99)))) {
for (int i = 0; i < _scumm->_mixer->NUM_CHANNELS; i++) {
if (i != _talkChannel)
_scumm->_mixer->stop(i);