From b69ea090e5fce5399941d6e0edf100fc3f2e7530 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sat, 5 Nov 2005 15:21:28 +0000 Subject: Keep German end credits from printing 'dud' characters. svn-id: r19465 --- sword2/build_display.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) 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) { -- cgit v1.2.3