From c5c6bf838d9c67bd77b7a00f1b411318a0b086a9 Mon Sep 17 00:00:00 2001 From: Joost Peters Date: Sun, 13 Mar 2005 13:15:17 +0000 Subject: Fix/workaround for bug #1151924 - datafiles for the floppy version contain 'broken' string when using spanish text. svn-id: r17117 --- sky/text.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sky') 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; -- cgit v1.2.3