[Scummvm-cvs-logs] SF.net SVN: scummvm:[42480] scummvm/trunk/engines/agos/string.cpp

Kirben at users.sourceforge.net Kirben at users.sourceforge.net
Tue Jul 14 15:53:54 CEST 2009


Revision: 42480
          http://scummvm.svn.sourceforge.net/scummvm/?rev=42480&view=rev
Author:   Kirben
Date:     2009-07-14 13:53:54 +0000 (Tue, 14 Jul 2009)

Log Message:
-----------
Update workaround for bug #1538873, which effects the Polish version of Simon the Sorcerer 2 too.

Modified Paths:
--------------
    scummvm/trunk/engines/agos/string.cpp

Modified: scummvm/trunk/engines/agos/string.cpp
===================================================================
--- scummvm/trunk/engines/agos/string.cpp	2009-07-14 13:52:11 UTC (rev 42479)
+++ scummvm/trunk/engines/agos/string.cpp	2009-07-14 13:53:54 UTC (rev 42480)
@@ -136,9 +136,11 @@
 		strcpy((char *)dst, (const char *)stringPtr);
 	}
 
-	// WORKAROUND bug #1538873: The French version used excess spaces, 
-	// at the end of many messages, so we strip off those excess spaces.
-	if (getGameType() == GType_SIMON1 && _language == Common::FR_FRA) {
+	// WORKAROUND bug #1538873: The French version of Simon 1 and the
+	// Polish version of Simon 2 used excess spaces, at the end of many
+	// messages, so we strip off those excess spaces.
+	if ((getGameType() == GType_SIMON1 && _language == Common::FR_FRA) ||
+		(getGameType() == GType_SIMON2 && _language == Common::PL_POL)) {
 		uint16 len = strlen((const char *)dst) - 1;
 
 		while (len && dst[len] == 32) {


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