aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/agos/string.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/agos/string.cpp b/engines/agos/string.cpp
index a466be796f..23dc24cf33 100644
--- a/engines/agos/string.cpp
+++ b/engines/agos/string.cpp
@@ -136,6 +136,18 @@ const byte *AGOSEngine::getStringPtrByID(uint16 stringId, bool upperCase) {
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) {
+ uint16 len = strlen((const char *)dst) - 1;
+
+ while (len && dst[len] == 32) {
+ dst[len] = 0;
+ len--;
+ }
+
+ }
+
if (upperCase && *dst) {
if (islower(*dst))
*dst = toupper(*dst);