diff options
author | Torbjörn Andersson | 2005-11-05 15:21:28 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2005-11-05 15:21:28 +0000 |
commit | b69ea090e5fce5399941d6e0edf100fc3f2e7530 (patch) | |
tree | 123eb0f1c0e467bbb0d15ae381fce628cdfc41f0 /sword2 | |
parent | ffbbafed15b1625a94eb09680873ae8f7a636989 (diff) | |
download | scummvm-rg350-b69ea090e5fce5399941d6e0edf100fc3f2e7530.tar.gz scummvm-rg350-b69ea090e5fce5399941d6e0edf100fc3f2e7530.tar.bz2 scummvm-rg350-b69ea090e5fce5399941d6e0edf100fc3f2e7530.zip |
Keep German end credits from printing 'dud' characters.
svn-id: r19465
Diffstat (limited to 'sword2')
-rw-r--r-- | sword2/build_display.cpp | 11 |
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) { |