[Scummvm-cvs-logs] CVS: scummvm/sword2 build_display.cpp,1.83,1.84
Torbjörn Andersson
eriktorbjorn at users.sourceforge.net
Sat Nov 5 07:21:59 CET 2005
Update of /cvsroot/scummvm/scummvm/sword2
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3949
Modified Files:
build_display.cpp
Log Message:
Keep German end credits from printing 'dud' characters.
Index: build_display.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword2/build_display.cpp,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -d -r1.83 -r1.84
--- build_display.cpp 3 Nov 2005 09:47:19 -0000 1.83
+++ build_display.cpp 5 Nov 2005 15:21:28 -0000 1.84
@@ -719,6 +719,8 @@
// '@' 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 @@
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) {
More information about the Scummvm-git-logs
mailing list