Applied patch #1597800 to better support the Spanish end credits.

svn-id: r24727
This commit is contained in:
Torbjörn Andersson 2006-11-16 21:20:24 +00:00
parent dfe8d777c1
commit 51a964d056

View File

@ -928,13 +928,19 @@ void Screen::rollCredits() {
continue;
}
// The German credits contains character code 9. We don't want
// the credits to show the 'dud' symbol, so we replace them
// with spaces.
// Replace invalid character codes to avoid the credits to show
// the 'dud' symbol.
for (char *ptr = line; *ptr; ptr++) {
if (*ptr < 32)
for (byte *ptr = (byte *)line; *ptr; ptr++) {
// The German credits contains character code 9. We
// replace them with spaces.
if (*ptr == 9)
*ptr = 32;
// The Spanish credits contains character code 170. We
// replace them with dots.
if (*ptr == 170)
*ptr = '.';
}
char *center_mark = strchr(line, '^');