aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2006-01-15 11:12:57 +0000
committerTravis Howell2006-01-15 11:12:57 +0000
commitfc42c366d3083b19de8fce4c769969532c8e8cc2 (patch)
treee5ccde853ba26c67cd42a96349d946c881ae11f7 /scumm
parent64f19557455503d876baa733c073c44866eea1d9 (diff)
downloadscummvm-rg350-fc42c366d3083b19de8fce4c769969532c8e8cc2.tar.gz
scummvm-rg350-fc42c366d3083b19de8fce4c769969532c8e8cc2.tar.bz2
scummvm-rg350-fc42c366d3083b19de8fce4c769969532c8e8cc2.zip
Add missing check for talk sounds in HE games.
Fixes cut off speech regression in spyfox. svn-id: r20044
Diffstat (limited to 'scumm')
-rw-r--r--scumm/sound_he.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scumm/sound_he.cpp b/scumm/sound_he.cpp
index c3e6411ebd..8b0c209640 100644
--- a/scumm/sound_he.cpp
+++ b/scumm/sound_he.cpp
@@ -420,6 +420,8 @@ void Sound::playHESound(int soundID, int heOffset, int heChannel, int heFlags) {
if (_vm->_mixer->isSoundHandleActive(_heSoundChannels[heChannel])) {
int curSnd = _heChannel[heChannel].sound;
+ if (curSnd == 1 && soundID != 1)
+ return;
if (curSnd != 0 && curSnd != 1 && soundID != 1 && _heChannel[heChannel].priority > priority)
return;
}