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

svn-id: r42480
This commit is contained in:
Travis Howell 2009-07-14 13:53:54 +00:00
parent 37c7cf951a
commit cc4fb1277f

View file

@ -136,9 +136,11 @@ const byte *AGOSEngine::getStringPtrByID(uint16 stringId, bool upperCase) {
strcpy((char *)dst, (const char *)stringPtr); strcpy((char *)dst, (const char *)stringPtr);
} }
// WORKAROUND bug #1538873: The French version used excess spaces, // WORKAROUND bug #1538873: The French version of Simon 1 and the
// at the end of many messages, so we strip off those excess spaces. // Polish version of Simon 2 used excess spaces, at the end of many
if (getGameType() == GType_SIMON1 && _language == Common::FR_FRA) { // 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; uint16 len = strlen((const char *)dst) - 1;
while (len && dst[len] == 32) { while (len && dst[len] == 32) {