Don't talk too much.

svn-id: r10819
This commit is contained in:
David Eriksson 2003-10-16 04:01:40 +00:00
parent 195b1d6aa4
commit f057e794f7
2 changed files with 8 additions and 3 deletions

View File

@ -605,13 +605,18 @@ int Talk::countSpaces(const char *segment) {
}
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);

View File

@ -186,7 +186,7 @@ class Talk {
//! Speak a part of a sentence
void speakSegment(
const char *segment,
const char *segmentStart,
int length,
Person *person,
int command,