aboutsummaryrefslogtreecommitdiff
path: root/queen/talk.cpp
diff options
context:
space:
mode:
authorGregory Montoir2003-12-29 16:33:03 +0000
committerGregory Montoir2003-12-29 16:33:03 +0000
commitcf7adca772da7e61400a96be10f553ed15e8f6f4 (patch)
treea27ded0e0de43b85b0eb95f8159410b61def9df5 /queen/talk.cpp
parent0c7b09fc5e7b8b5c6fb63568c469003e99897fdd (diff)
downloadscummvm-rg350-cf7adca772da7e61400a96be10f553ed15e8f6f4.tar.gz
scummvm-rg350-cf7adca772da7e61400a96be10f553ed15e8f6f4.tar.bz2
scummvm-rg350-cf7adca772da7e61400a96be10f553ed15e8f6f4.zip
fix for 'Klunk sentence repeated 2 times' bug (noticeable in french talkie version)
svn-id: r12015
Diffstat (limited to 'queen/talk.cpp')
-rw-r--r--queen/talk.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/queen/talk.cpp b/queen/talk.cpp
index 4830343b9f..8353d91bb2 100644
--- a/queen/talk.cpp
+++ b/queen/talk.cpp
@@ -931,8 +931,11 @@ void Talk::speakSegment(
// debug(0, "Sentence segment '%*s' is said by person '%s' and voice file '%s' is played",
// length, segment, person->name, voiceFileName);
- _vm->sound()->playSfx(voiceFileName);
- //debug(0, "Playing voice file '%s'", voiceFileName);
+ // FIXME - it seems the french talkie version has a useless voice file ;
+ // the c30e_102 file is very similar to c30e_101, so there is no need to
+ // play it. This voice was used in room 30 (N8) when talking to Klunk.
+ if (!(_vm->resource()->getLanguage() == FRENCH && !strcmp(voiceFileName, "c30e_102")))
+ _vm->sound()->playSfx(voiceFileName);
int faceDirectionCommand = 0;