aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/res.cpp
diff options
context:
space:
mode:
authorTravis Howell2006-10-14 05:47:18 +0000
committerTravis Howell2006-10-14 05:47:18 +0000
commit996a1adf803d23636f6e8955e9fdaa358e460157 (patch)
tree468ca7b248e79fab136888f79875c0211bf60190 /engines/agos/res.cpp
parent3559fcba43e359839a72dc9174b28c6fa0aa14cb (diff)
downloadscummvm-rg350-996a1adf803d23636f6e8955e9fdaa358e460157.tar.gz
scummvm-rg350-996a1adf803d23636f6e8955e9fdaa358e460157.tar.bz2
scummvm-rg350-996a1adf803d23636f6e8955e9fdaa358e460157.zip
Fix stopping of music in PP
svn-id: r24304
Diffstat (limited to 'engines/agos/res.cpp')
-rw-r--r--engines/agos/res.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/agos/res.cpp b/engines/agos/res.cpp
index 18b305617c..d44b64fe21 100644
--- a/engines/agos/res.cpp
+++ b/engines/agos/res.cpp
@@ -825,8 +825,10 @@ void AGOSEngine::loadSound(uint sound, int pan, int vol, uint type) {
}
void AGOSEngine::loadVoice(uint speechId) {
- if (getGameType() == GType_PP && speechId == 99)
+ if (getGameType() == GType_PP && speechId == 99) {
+ _sound->stopVoice();
return;
+ }
if (getFeatures() & GF_ZLIBCOMP) {
char filename[15];