From e994b94c814ece7285228598c408b9939e2d3398 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 16 May 2009 04:50:52 +0000 Subject: Added a workaround for a discrepancy in the English version - one of the long messages had a LF in the middle of a word svn-id: r40618 --- engines/cruise/overlay.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'engines') diff --git a/engines/cruise/overlay.cpp b/engines/cruise/overlay.cpp index 68f6545d77..b5bb145b91 100644 --- a/engines/cruise/overlay.cpp +++ b/engines/cruise/overlay.cpp @@ -25,6 +25,7 @@ #include "common/stream.h" +#include "cruise/cruise.h" #include "cruise/cruise_main.h" namespace Cruise { @@ -566,6 +567,16 @@ int loadOverlay(const char *scriptName) { } s2.read(ovlData->stringTable[i].string, ovlData->stringTable[i].length); + + // WORKAROUND: English version, idx 16, num #60 has a line feed character + // in the middle of a word + if ((scriptIdx == 16) && (i == 60) && (_vm->getLanguage() == Common::EN_ANY)) { + char *p = strchr(ovlData->stringTable[i].string, '\xa'); + if (p != NULL) { + // Delete the line feed character by shifting remainder of message + while ((*p = *(p + 1)) != '\0') ++p; + } + } } } } -- cgit v1.2.3