mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-18 16:03:05 +00:00
Don't talk too much.
svn-id: r10819
This commit is contained in:
parent
195b1d6aa4
commit
f057e794f7
@ -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);
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user