aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMartin Kiewitz2010-04-26 14:11:30 +0000
committerMartin Kiewitz2010-04-26 14:11:30 +0000
commit98ae0f82183ca3612f641d6203c42d8003bab36e (patch)
tree3f28c7c90639c62e454a0fcc2a5ea840fe9e5e53 /engines
parent6ccdb3cba0d936645b74bcb0a332bc2188e23c27 (diff)
downloadscummvm-rg350-98ae0f82183ca3612f641d6203c42d8003bab36e.tar.gz
scummvm-rg350-98ae0f82183ca3612f641d6203c42d8003bab36e.tar.bz2
scummvm-rg350-98ae0f82183ca3612f641d6203c42d8003bab36e.zip
SCI: also set signal selector when stopping sounds for SCI0 as well - fixes sq3 freeing 2 guys from andromeda endless loop
svn-id: r48805
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/sound/soundcmd.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sci/sound/soundcmd.cpp b/engines/sci/sound/soundcmd.cpp
index 20bce575f5..8970f9c756 100644
--- a/engines/sci/sound/soundcmd.cpp
+++ b/engines/sci/sound/soundcmd.cpp
@@ -517,8 +517,9 @@ void SoundCommandParser::cmdStopSound(reg_t obj, int16 value) {
PUT_SEL32V(_segMan, obj, SELECTOR(state), kSoundStopped);
} else {
PUT_SEL32V(_segMan, obj, SELECTOR(handle), 0);
- PUT_SEL32V(_segMan, obj, SELECTOR(signal), SIGNAL_OFFSET);
}
+ // we need to set signal selector at least for sq3old (SCI0LATE), otherwise freeing the 2 guys wont work (endless loop)
+ PUT_SEL32V(_segMan, obj, SELECTOR(signal), SIGNAL_OFFSET);
musicSlot->dataInc = 0;
musicSlot->signal = 0;