aboutsummaryrefslogtreecommitdiff
path: root/queen/cutaway.cpp
diff options
context:
space:
mode:
authorGregory Montoir2003-11-26 21:46:29 +0000
committerGregory Montoir2003-11-26 21:46:29 +0000
commit28ac3d653dfdf80b44b1085641480678e1f5b388 (patch)
treed504d5f5126970d6170c4df0308d4ecdd62c37f1 /queen/cutaway.cpp
parent584760fc707eafde1119fecf4b12fe105dad3cf8 (diff)
downloadscummvm-rg350-28ac3d653dfdf80b44b1085641480678e1f5b388.tar.gz
scummvm-rg350-28ac3d653dfdf80b44b1085641480678e1f5b388.tar.bz2
scummvm-rg350-28ac3d653dfdf80b44b1085641480678e1f5b388.zip
add a wrapper for Talk::speak in Logic that clears current command
svn-id: r11379
Diffstat (limited to 'queen/cutaway.cpp')
-rw-r--r--queen/cutaway.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/queen/cutaway.cpp b/queen/cutaway.cpp
index 15d0a831c1..fc9aafc9cf 100644
--- a/queen/cutaway.cpp
+++ b/queen/cutaway.cpp
@@ -1180,10 +1180,8 @@ void Cutaway::handlePersonRecord(
}
char voiceFilePrefix[MAX_STRING_SIZE];
- findCdCut(_basename, index, voiceFilePrefix);
-
- Talk::speak(sentence, (object.objectNumber == OBJECT_JOE) ? NULL : &p, voiceFilePrefix,
- _graphics, _input, _logic, _resource, _sound);
+ findCdCut(_basename, index, voiceFilePrefix);
+ _logic->makePersonSpeak(sentence, (object.objectNumber == OBJECT_JOE) ? NULL : &p, voiceFilePrefix);
}
}