diff options
author | Travis Howell | 2003-12-14 03:36:47 +0000 |
---|---|---|
committer | Travis Howell | 2003-12-14 03:36:47 +0000 |
commit | 6f2217dcb2e8e51f32f56dcf2cb8444d16634638 (patch) | |
tree | 2edc428a5c03a12bcd5f5283098922717741fabc /queen | |
parent | 7efafcca536773fa28ad4d38d2be34f30a076758 (diff) | |
download | scummvm-rg350-6f2217dcb2e8e51f32f56dcf2cb8444d16634638.tar.gz scummvm-rg350-6f2217dcb2e8e51f32f56dcf2cb8444d16634638.tar.bz2 scummvm-rg350-6f2217dcb2e8e51f32f56dcf2cb8444d16634638.zip |
Fixproblem of fotaq attempting to play sfx as music, when sfx are disabled.
svn-id: r11623
Diffstat (limited to 'queen')
-rw-r--r-- | queen/sound.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/queen/sound.cpp b/queen/sound.cpp index 397891248d..113627b6a2 100644 --- a/queen/sound.cpp +++ b/queen/sound.cpp @@ -143,8 +143,9 @@ void Sound::playSong(int16 songNum) { int16 newTune = _song[songNum - 1].tuneList[0]; - if (_tune[newTune - 1].sfx[0] && sfxOn()) { - sfxPlay(_sfxName[_tune[newTune - 1].sfx[0] - 1]); + if (_tune[newTune - 1].sfx[0]) { + if (sfxOn()) + sfxPlay(_sfxName[_tune[newTune - 1].sfx[0] - 1]); return; } |