aboutsummaryrefslogtreecommitdiff
path: root/queen/talk.cpp
diff options
context:
space:
mode:
authorJoost Peters2004-02-21 20:20:35 +0000
committerJoost Peters2004-02-21 20:20:35 +0000
commit0301ccc8a88283d02b65749fd21f90e71582f14d (patch)
tree0e60d852713c5279049abae14bcb48cc18d03302 /queen/talk.cpp
parent1d7eafe675e08835a0f1128996b1f8a72561825d (diff)
downloadscummvm-rg350-0301ccc8a88283d02b65749fd21f90e71582f14d.tar.gz
scummvm-rg350-0301ccc8a88283d02b65749fd21f90e71582f14d.tar.bz2
scummvm-rg350-0301ccc8a88283d02b65749fd21f90e71582f14d.zip
Fix for bug #899881 (Sounds played when sound turned off)
svn-id: r12975
Diffstat (limited to 'queen/talk.cpp')
-rw-r--r--queen/talk.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/queen/talk.cpp b/queen/talk.cpp
index 1d0223f19b..c0d7fd02e8 100644
--- a/queen/talk.cpp
+++ b/queen/talk.cpp
@@ -773,7 +773,8 @@ void Talk::stringAnimation(const SpeechParameters *parameters, int startFrame, i
if (frame > 500) {
frame -= 500;
- _vm->sound()->playSfx(_vm->logic()->currentRoomSfx(), false);
+ if (_vm->sound()->sfxOn())
+ _vm->sound()->playSfx(_vm->logic()->currentRoomSfx(), false);
}
if (torso) {