diff options
author | Oystein Eftevaag | 2006-05-28 05:09:09 +0000 |
---|---|---|
committer | Oystein Eftevaag | 2006-05-28 05:09:09 +0000 |
commit | 3a1dec3ad19db6daeee0098d69611f5255ee8fa7 (patch) | |
tree | 8eff65f72872810cf16442097072f66119418198 | |
parent | 8161aa8adbb6d0c5e5e7b09e21773f00c0747342 (diff) | |
download | scummvm-rg350-3a1dec3ad19db6daeee0098d69611f5255ee8fa7.tar.gz scummvm-rg350-3a1dec3ad19db6daeee0098d69611f5255ee8fa7.tar.bz2 scummvm-rg350-3a1dec3ad19db6daeee0098d69611f5255ee8fa7.zip |
Added checks for sound/text config in Brandons responses to using the amulet
svn-id: r22699
-rw-r--r-- | engines/kyra/gui.cpp | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/engines/kyra/gui.cpp b/engines/kyra/gui.cpp index ff9dbe024d..f36d7c417f 100644 --- a/engines/kyra/gui.cpp +++ b/engines/kyra/gui.cpp @@ -111,31 +111,34 @@ int KyraEngine::buttonAmuletCallback(Button *caller) { return 1; if (_itemInHand != -1) { assert(_putDownFirst); - if (_features & GF_TALKIE) { + if (_features & GF_TALKIE && (_configVoice == 1 || _configVoice == 2)) { snd_voiceWaitForFinish(); snd_playVoiceFile(2000); } - characterSays(_putDownFirst[0], 0, -2); + if (_features & GF_FLOPPY || (_configVoice == 0 || _configVoice == 2)) + characterSays(_putDownFirst[0], 0, -2); return 1; } if (queryGameFlag(0xF1)) { assert(_waitForAmulet); - if (_features & GF_TALKIE) { + if (_features & GF_TALKIE && (_configVoice == 1 || _configVoice == 2)) { snd_voiceWaitForFinish(); snd_playVoiceFile(2001); } - characterSays(_waitForAmulet[0], 0, -2); + if (_features & GF_FLOPPY || (_configVoice == 0 || _configVoice == 2)) + characterSays(_waitForAmulet[0], 0, -2); return 1; } if (!queryGameFlag(0x55+jewel)) { assert(_blackJewel); _animator->makeBrandonFaceMouse(); drawJewelPress(jewel, 1); - if (_features & GF_TALKIE) { + if (_features & GF_TALKIE && (_configVoice == 1 || _configVoice == 2)) { snd_voiceWaitForFinish(); snd_playVoiceFile(2002); } - characterSays(_blackJewel[0], 0, -2); + if (_features & GF_FLOPPY || (_configVoice == 0 || _configVoice == 2)) + characterSays(_blackJewel[0], 0, -2); return 1; } drawJewelPress(jewel, 0); @@ -162,11 +165,12 @@ int KyraEngine::buttonAmuletCallback(Button *caller) { } else if (_brandonStatusBit == 0) { seq_brandonHealing(); assert(_healingTip); - if (_features & GF_TALKIE) { + if (_features & GF_TALKIE && (_configVoice == 1 || _configVoice == 2)) { snd_voiceWaitForFinish(); snd_playVoiceFile(2003); } - characterSays(_healingTip[0], 0, -2); + if (_features & GF_FLOPPY || (_configVoice == 0 || _configVoice == 2)) + characterSays(_healingTip[0], 0, -2); } break; @@ -177,11 +181,12 @@ int KyraEngine::buttonAmuletCallback(Button *caller) { case 2: if (_brandonStatusBit & 1) { assert(_wispJewelStrings); - if (_features & GF_TALKIE) { + if (_features & GF_TALKIE && (_configVoice == 1 || _configVoice == 2)) { snd_voiceWaitForFinish(); snd_playVoiceFile(2004); } - characterSays(_wispJewelStrings[0], 0, -2); + if (_features & GF_FLOPPY || (_configVoice == 0 || _configVoice == 2)) + characterSays(_wispJewelStrings[0], 0, -2); } else { if (_brandonStatusBit & 2) { // XXX @@ -205,11 +210,12 @@ int KyraEngine::buttonAmuletCallback(Button *caller) { case 3: seq_dispelMagicAnimation(); assert(_magicJewelString); - if (_features & GF_TALKIE) { + if (_features & GF_TALKIE && (_configVoice == 1 || _configVoice == 2)) { snd_voiceWaitForFinish(); snd_playVoiceFile(2007); } - characterSays(_magicJewelString[0], 0, -2); + if (_features & GF_FLOPPY || (_configVoice == 0 || _configVoice == 2)) + characterSays(_magicJewelString[0], 0, -2); break; default: |