[Scummvm-cvs-logs] SF.net SVN: scummvm:[40618] scummvm/trunk/engines/cruise/overlay.cpp
dreammaster at users.sourceforge.net
dreammaster at users.sourceforge.net
Sat May 16 06:50:52 CEST 2009
Revision: 40618
http://scummvm.svn.sourceforge.net/scummvm/?rev=40618&view=rev
Author: dreammaster
Date: 2009-05-16 04:50:52 +0000 (Sat, 16 May 2009)
Log Message:
-----------
Added a workaround for a discrepancy in the English version - one of the long messages had a LF in the middle of a word
Modified Paths:
--------------
scummvm/trunk/engines/cruise/overlay.cpp
Modified: scummvm/trunk/engines/cruise/overlay.cpp
===================================================================
--- scummvm/trunk/engines/cruise/overlay.cpp 2009-05-16 04:04:35 UTC (rev 40617)
+++ scummvm/trunk/engines/cruise/overlay.cpp 2009-05-16 04:50:52 UTC (rev 40618)
@@ -25,6 +25,7 @@
#include "common/stream.h"
+#include "cruise/cruise.h"
#include "cruise/cruise_main.h"
namespace Cruise {
@@ -566,6 +567,16 @@
}
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;
+ }
+ }
}
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list