[Scummvm-cvs-logs] CVS: scummvm/sword2 build_display.cpp,1.77.2.3,1.77.2.4

Torbjörn Andersson eriktorbjorn at users.sourceforge.net
Sat Nov 5 07:24:35 CET 2005


Update of /cvsroot/scummvm/scummvm/sword2
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4236

Modified Files:
      Tag: branch-0-8-0
	build_display.cpp 
Log Message:
Backported fix for German end credits.


Index: build_display.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword2/build_display.cpp,v
retrieving revision 1.77.2.3
retrieving revision 1.77.2.4
diff -u -d -r1.77.2.3 -r1.77.2.4
--- build_display.cpp	3 Nov 2005 09:47:59 -0000	1.77.2.3
+++ build_display.cpp	5 Nov 2005 15:23:09 -0000	1.77.2.4
@@ -702,6 +702,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?
 	//
@@ -779,6 +781,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