[Scummvm-cvs-logs] CVS: scummvm/queen talk.cpp,1.74,1.75
David Eriksson
twogood at users.sourceforge.net
Sat Jan 10 07:54:00 CET 2004
Update of /cvsroot/scummvm/scummvm/queen
In directory sc8-pr-cvs1:/tmp/cvs-serv8530
Modified Files:
talk.cpp
Log Message:
Honor speech and subtitle toggles
Index: talk.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/queen/talk.cpp,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -d -r1.74 -r1.75
--- talk.cpp 9 Jan 2004 13:36:37 -0000 1.74
+++ talk.cpp 10 Jan 2004 15:53:51 -0000 1.75
@@ -943,7 +943,8 @@
// 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")))
+ if (!(_vm->resource()->getLanguage() == FRENCH && !strcmp(voiceFileName, "c30e_102"))
+ && _vm->sound()->speechOn())
_vm->sound()->playSfx(voiceFileName);
int faceDirectionCommand = 0;
@@ -1011,7 +1012,8 @@
int startFrame = 0;
if (_talkHead && isJoe) {
- _vm->graphics()->setBobText(bob, segment, textX, textY, color, true);
+ if (_vm->subtitles())
+ _vm->graphics()->setBobText(bob, segment, textX, textY, color, true);
defaultAnimation(segment, isJoe, parameters, startFrame, bankNum);
}
else {
@@ -1066,7 +1068,8 @@
headStringAnimation(parameters, bobNum, bankNum);
}
- _vm->graphics()->setBobText(bob, segment, textX, textY, color, _talkHead);
+ if (_vm->subtitles())
+ _vm->graphics()->setBobText(bob, segment, textX, textY, color, _talkHead);
if (parameters->animation[0] != '\0' && parameters->animation[0] != 'E') {
stringAnimation(parameters, startFrame, bankNum);
More information about the Scummvm-git-logs
mailing list