aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sword2/build_display.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/sword2/build_display.cpp b/sword2/build_display.cpp
index c3bed77219..cb8be71bba 100644
--- a/sword2/build_display.cpp
+++ b/sword2/build_display.cpp
@@ -719,6 +719,8 @@ void Screen::rollCredits() {
// '@' is used as a placeholder for the "Smacker" logo. At least
// when it appears alone.
// Remaining lines are centered.
+ // The German version also contains character code 9 for no
+ // apparent reason. We ignore them.
//
// fonts.clu - The credits font?
//
@@ -796,6 +798,15 @@ 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.
+
+ for (char *ptr = line; *ptr; ptr++) {
+ if (*ptr < 32)
+ *ptr = 32;
+ }
+
char *center_mark = strchr(line, '^');
if (center_mark) {