[Scummvm-cvs-logs] SF.net SVN: scummvm: [24727] scummvm/trunk/engines/sword2/screen.cpp

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Thu Nov 16 22:20:24 CET 2006


Revision: 24727
          http://svn.sourceforge.net/scummvm/?rev=24727&view=rev
Author:   eriktorbjorn
Date:     2006-11-16 13:20:24 -0800 (Thu, 16 Nov 2006)

Log Message:
-----------
Applied patch #1597800 to better support the Spanish end credits.

Modified Paths:
--------------
    scummvm/trunk/engines/sword2/screen.cpp

Modified: scummvm/trunk/engines/sword2/screen.cpp
===================================================================
--- scummvm/trunk/engines/sword2/screen.cpp	2006-11-16 17:08:31 UTC (rev 24726)
+++ scummvm/trunk/engines/sword2/screen.cpp	2006-11-16 21:20:24 UTC (rev 24727)
@@ -928,13 +928,19 @@
 			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.
+		// Replace invalid character codes to avoid the credits to show
+		// the 'dud' symbol.
 
-		for (char *ptr = line; *ptr; ptr++) {
-			if (*ptr < 32)
+		for (byte *ptr = (byte *)line; *ptr; ptr++) {
+			// The German credits contains character code 9. We
+			// replace them with spaces.
+			if (*ptr == 9)
 				*ptr = 32;
+
+			// The Spanish credits contains character code 170. We
+			// replace them with dots.
+			if (*ptr == 170)
+				*ptr = '.';
 		}
 
 		char *center_mark = strchr(line, '^');


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list