diff options
author | Travis Howell | 2009-07-14 13:53:54 +0000 |
---|---|---|
committer | Travis Howell | 2009-07-14 13:53:54 +0000 |
commit | cc4fb1277fdcfed48f4ac90b67b48cdaead03469 (patch) | |
tree | 18ad69e15efa4047d25900dbbe6c0168b6903c0d /engines/agos | |
parent | 37c7cf951a482df8281b86be74313cba65fdd520 (diff) | |
download | scummvm-rg350-cc4fb1277fdcfed48f4ac90b67b48cdaead03469.tar.gz scummvm-rg350-cc4fb1277fdcfed48f4ac90b67b48cdaead03469.tar.bz2 scummvm-rg350-cc4fb1277fdcfed48f4ac90b67b48cdaead03469.zip |
Update workaround for bug #1538873, which effects the Polish version of Simon the Sorcerer 2 too.
svn-id: r42480
Diffstat (limited to 'engines/agos')
-rw-r--r-- | engines/agos/string.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/agos/string.cpp b/engines/agos/string.cpp index 23dc24cf33..3773b1fa10 100644 --- a/engines/agos/string.cpp +++ b/engines/agos/string.cpp @@ -136,9 +136,11 @@ 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) { + // 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) { |