diff options
author | Joost Peters | 2005-03-13 13:15:17 +0000 |
---|---|---|
committer | Joost Peters | 2005-03-13 13:15:17 +0000 |
commit | c5c6bf838d9c67bd77b7a00f1b411318a0b086a9 (patch) | |
tree | cbdbc915e18e290633acb687a32ff63bba727d8b /sky/text.cpp | |
parent | 4526328f7ca58270d8060f9d75ddb57fa5f1ab72 (diff) | |
download | scummvm-rg350-c5c6bf838d9c67bd77b7a00f1b411318a0b086a9.tar.gz scummvm-rg350-c5c6bf838d9c67bd77b7a00f1b411318a0b086a9.tar.bz2 scummvm-rg350-c5c6bf838d9c67bd77b7a00f1b411318a0b086a9.zip |
Fix/workaround for bug #1151924 - datafiles for the floppy version contain 'broken' string when using spanish text.
svn-id: r17117
Diffstat (limited to 'sky/text.cpp')
-rw-r--r-- | sky/text.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sky/text.cpp b/sky/text.cpp index c8d59c16f6..fc8cb169b3 100644 --- a/sky/text.cpp +++ b/sky/text.cpp @@ -399,6 +399,13 @@ displayText_t Text::displayText(char *textPtr, uint8 *dest, bool centre, uint16 if (tmpPtr) strcpy(tmpPtr, "MUND BEATMUNG!"); + // work around bug #1151924 (line width exceeded when talking to gardener using spanish text) + // This text apparently only is broken in the floppy versions, the CD versions contain + // the correct string "MANIFESTACION - ARTISTICA.", which doesn't break the algorithm/game. + tmpPtr = strstr(textPtr, "MANIFESTACION-ARTISTICA."); + if (tmpPtr) + strcpy(tmpPtr, "MANIFESTACION - ARTISTICA."); + while (textChar >= 0x20) { if ((_curCharSet == 1) && (textChar >= 0x80)) textChar = 0x20; |