From cf7adca772da7e61400a96be10f553ed15e8f6f4 Mon Sep 17 00:00:00 2001 From: Gregory Montoir Date: Mon, 29 Dec 2003 16:33:03 +0000 Subject: fix for 'Klunk sentence repeated 2 times' bug (noticeable in french talkie version) svn-id: r12015 --- queen/talk.cpp | 7 +++++-- 1 file 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; -- cgit v1.2.3