diff options
author | Torbjörn Andersson | 2006-11-16 21:20:24 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2006-11-16 21:20:24 +0000 |
commit | 51a964d05683f8a96d57aa747249650351925879 (patch) | |
tree | fbdee073eecb298334636eb7df369ff463825f9f /engines | |
parent | dfe8d777c122fb1054d27747bb2d6810e4cca84a (diff) | |
download | scummvm-rg350-51a964d05683f8a96d57aa747249650351925879.tar.gz scummvm-rg350-51a964d05683f8a96d57aa747249650351925879.tar.bz2 scummvm-rg350-51a964d05683f8a96d57aa747249650351925879.zip |
Applied patch #1597800 to better support the Spanish end credits.
svn-id: r24727
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sword2/screen.cpp | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/engines/sword2/screen.cpp b/engines/sword2/screen.cpp index 9c1d7cdf87..cd02af76fa 100644 --- a/engines/sword2/screen.cpp +++ b/engines/sword2/screen.cpp @@ -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, '^'); |