[Scummvm-cvs-logs] CVS: scummvm/queen talk.cpp,1.10,1.11 talk.h,1.8,1.9
David Eriksson
twogood at users.sourceforge.net
Wed Oct 15 21:04:13 CEST 2003
Update of /cvsroot/scummvm/scummvm/queen
In directory sc8-pr-cvs1:/tmp/cvs-serv26554/queen
Modified Files:
talk.cpp talk.h
Log Message:
Don't talk too much.
Index: talk.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/queen/talk.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- talk.cpp 15 Oct 2003 18:39:30 -0000 1.10
+++ talk.cpp 16 Oct 2003 04:01:40 -0000 1.11
@@ -605,13 +605,18 @@
}
void Talk::speakSegment(
- const char *segment,
+ const char *segmentStart,
int length,
Person *person,
int command,
const char *voiceFilePrefix,
int index) {
- // Function SPEAK_SUB, lines 1406-1870 in talk.c
+ // Function SPEAK_SUB, lines 1406-1870 in talk.a
+
+ char segment[MAX_STRING_SIZE];
+ memcpy(segment, segmentStart, length);
+ segment[length] = '\0';
+
char voiceFileName[MAX_STRING_SIZE];
snprintf(voiceFileName, sizeof(voiceFileName), "%s%1x", voiceFilePrefix, index);
Index: talk.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/queen/talk.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- talk.h 15 Oct 2003 18:39:30 -0000 1.8
+++ talk.h 16 Oct 2003 04:01:40 -0000 1.9
@@ -186,7 +186,7 @@
//! Speak a part of a sentence
void speakSegment(
- const char *segment,
+ const char *segmentStart,
int length,
Person *person,
int command,
More information about the Scummvm-git-logs
mailing list