aboutsummaryrefslogtreecommitdiff
path: root/engines/sword2
diff options
context:
space:
mode:
authorTorbjörn Andersson2006-11-16 21:20:24 +0000
committerTorbjörn Andersson2006-11-16 21:20:24 +0000
commit51a964d05683f8a96d57aa747249650351925879 (patch)
treefbdee073eecb298334636eb7df369ff463825f9f /engines/sword2
parentdfe8d777c122fb1054d27747bb2d6810e4cca84a (diff)
downloadscummvm-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/sword2')
-rw-r--r--engines/sword2/screen.cpp16
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, '^');