Added checks for sound/text config in Brandons responses to using the amulet

svn-id: r22699
This commit is contained in:
Oystein Eftevaag 2006-05-28 05:09:09 +00:00
parent 8161aa8adb
commit 3a1dec3ad1

View File

@ -111,19 +111,21 @@ 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);
}
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);
}
if (_features & GF_FLOPPY || (_configVoice == 0 || _configVoice == 2))
characterSays(_waitForAmulet[0], 0, -2);
return 1;
}
@ -131,10 +133,11 @@ int KyraEngine::buttonAmuletCallback(Button *caller) {
assert(_blackJewel);
_animator->makeBrandonFaceMouse();
drawJewelPress(jewel, 1);
if (_features & GF_TALKIE) {
if (_features & GF_TALKIE && (_configVoice == 1 || _configVoice == 2)) {
snd_voiceWaitForFinish();
snd_playVoiceFile(2002);
}
if (_features & GF_FLOPPY || (_configVoice == 0 || _configVoice == 2))
characterSays(_blackJewel[0], 0, -2);
return 1;
}
@ -162,10 +165,11 @@ 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);
}
if (_features & GF_FLOPPY || (_configVoice == 0 || _configVoice == 2))
characterSays(_healingTip[0], 0, -2);
}
break;
@ -177,10 +181,11 @@ 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);
}
if (_features & GF_FLOPPY || (_configVoice == 0 || _configVoice == 2))
characterSays(_wispJewelStrings[0], 0, -2);
} else {
if (_brandonStatusBit & 2) {
@ -205,10 +210,11 @@ 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);
}
if (_features & GF_FLOPPY || (_configVoice == 0 || _configVoice == 2))
characterSays(_magicJewelString[0], 0, -2);
break;