aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/gui.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2007-01-31 18:35:50 +0000
committerJohannes Schickel2007-01-31 18:35:50 +0000
commitd82c67b48cc25d44b27331cf82b4371ff6438d3c (patch)
tree3e044bb8a55aeb2ad26f19e8179f12a588dc9a37 /engines/kyra/gui.cpp
parent9799b346d86c5151d66d93f034cf5d1a40dbb15b (diff)
downloadscummvm-rg350-d82c67b48cc25d44b27331cf82b4371ff6438d3c.tar.gz
scummvm-rg350-d82c67b48cc25d44b27331cf82b4371ff6438d3c.tar.bz2
scummvm-rg350-d82c67b48cc25d44b27331cf82b4371ff6438d3c.zip
Fix for bug #Fix for bug #1523200 ("KYRA1: Voice-only mode has no lips animation").
svn-id: r25313
Diffstat (limited to 'engines/kyra/gui.cpp')
-rw-r--r--engines/kyra/gui.cpp41
1 files changed, 6 insertions, 35 deletions
diff --git a/engines/kyra/gui.cpp b/engines/kyra/gui.cpp
index 77498292b2..53a57ca8da 100644
--- a/engines/kyra/gui.cpp
+++ b/engines/kyra/gui.cpp
@@ -204,34 +204,19 @@ int KyraEngine::buttonAmuletCallback(Button *caller) {
return 1;
if (_itemInHand != -1) {
assert(_putDownFirst);
- if (speechEnabled()) {
- snd_voiceWaitForFinish();
- snd_playVoiceFile(2000);
- }
- if (textEnabled())
- characterSays(_putDownFirst[0], 0, -2);
+ characterSays(2000, _putDownFirst[0], 0, -2);
return 1;
}
if (queryGameFlag(0xF1)) {
assert(_waitForAmulet);
- if (speechEnabled()) {
- snd_voiceWaitForFinish();
- snd_playVoiceFile(2001);
- }
- if (textEnabled())
- characterSays(_waitForAmulet[0], 0, -2);
+ characterSays(2001, _waitForAmulet[0], 0, -2);
return 1;
}
if (!queryGameFlag(0x55+jewel)) {
assert(_blackJewel);
_animator->makeBrandonFaceMouse();
drawJewelPress(jewel, 1);
- if (speechEnabled()) {
- snd_voiceWaitForFinish();
- snd_playVoiceFile(2002);
- }
- if (textEnabled())
- characterSays(_blackJewel[0], 0, -2);
+ characterSays(2002, _blackJewel[0], 0, -2);
return 1;
}
drawJewelPress(jewel, 0);
@@ -258,12 +243,7 @@ int KyraEngine::buttonAmuletCallback(Button *caller) {
} else if (_brandonStatusBit == 0) {
seq_brandonHealing();
assert(_healingTip);
- if (speechEnabled()) {
- snd_voiceWaitForFinish();
- snd_playVoiceFile(2003);
- }
- if (textEnabled())
- characterSays(_healingTip[0], 0, -2);
+ characterSays(2003, _healingTip[0], 0, -2);
}
break;
@@ -274,12 +254,8 @@ int KyraEngine::buttonAmuletCallback(Button *caller) {
case 2:
if (_brandonStatusBit & 1) {
assert(_wispJewelStrings);
- if (speechEnabled()) {
- snd_voiceWaitForFinish();
- snd_playVoiceFile(2004);
- }
if (textEnabled())
- characterSays(_wispJewelStrings[0], 0, -2);
+ characterSays(2004, _wispJewelStrings[0], 0, -2);
} else {
if (_brandonStatusBit & 2) {
// XXX
@@ -303,12 +279,7 @@ int KyraEngine::buttonAmuletCallback(Button *caller) {
case 3:
seq_dispelMagicAnimation();
assert(_magicJewelString);
- if (speechEnabled()) {
- snd_voiceWaitForFinish();
- snd_playVoiceFile(2007);
- }
- if (textEnabled())
- characterSays(_magicJewelString[0], 0, -2);
+ characterSays(2007, _magicJewelString[0], 0, -2);
break;
default: