[Scummvm-cvs-logs] SF.net SVN: scummvm:[48699] scummvm/trunk/engines/sci/graphics/text16.cpp

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Sun Apr 18 14:09:22 CEST 2010


Revision: 48699
          http://scummvm.svn.sourceforge.net/scummvm/?rev=48699&view=rev
Author:   m_kiewitz
Date:     2010-04-18 12:09:22 +0000 (Sun, 18 Apr 2010)

Log Message:
-----------
SCI: sierra sci reacts on 0xD and 0xA to end a line. We only reacted on 0xA and ignored 0xD before (fixes subtitles in multilingual games, because the official subtitle separator is 0xD'----'0xD)

Modified Paths:
--------------
    scummvm/trunk/engines/sci/graphics/text16.cpp

Modified: scummvm/trunk/engines/sci/graphics/text16.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/text16.cpp	2010-04-18 10:15:56 UTC (rev 48698)
+++ scummvm/trunk/engines/sci/graphics/text16.cpp	2010-04-18 12:09:22 UTC (rev 48699)
@@ -179,9 +179,9 @@
 			break;
 
 		case 0xD:
-			curCharCount++;
-			continue;
-
+			// Check, if 0xA is following, if so include it as well
+			if ((*(unsigned char *)text) == 0xA)
+				curCharCount++;
 		case 0xA:
 			curCharCount++;
 		case 0:


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