From 0301ccc8a88283d02b65749fd21f90e71582f14d Mon Sep 17 00:00:00 2001 From: Joost Peters Date: Sat, 21 Feb 2004 20:20:35 +0000 Subject: Fix for bug #899881 (Sounds played when sound turned off) svn-id: r12975 --- queen/logic.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'queen/logic.cpp') diff --git a/queen/logic.cpp b/queen/logic.cpp index 8181abe32e..4f6edb14b3 100644 --- a/queen/logic.cpp +++ b/queen/logic.cpp @@ -1723,7 +1723,8 @@ void Logic::asmMakeLightningHitPlane() { lightningBob->y = 0; // 23/2/95 - Play lightning SFX - _vm->sound()->playSfx(currentRoomSfx(), false); + if (_vm->sound()->sfxOn()) + _vm->sound()->playSfx(currentRoomSfx(), false); _vm->bankMan()->unpack(18, lightningBob->frameNum, 15); _vm->bankMan()->unpack(4, planeBob ->frameNum, 15); -- cgit v1.2.3