aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2010-06-15 23:12:34 +0000
committerMax Horn2010-06-15 23:12:34 +0000
commit444a6b5976f1f5b41db1db94ae16a8987fff134c (patch)
tree96006d0edbc394d00b457642de6b05f520729f3a
parent3f4ec4a8a4bd70bb340a5ba358e8aa4b622ee844 (diff)
downloadscummvm-rg350-444a6b5976f1f5b41db1db94ae16a8987fff134c.tar.gz
scummvm-rg350-444a6b5976f1f5b41db1db94ae16a8987fff134c.tar.bz2
scummvm-rg350-444a6b5976f1f5b41db1db94ae16a8987fff134c.zip
Workaround bug #3003643 (MI1EGA German: Credit text incorrect)
svn-id: r49895
-rw-r--r--engines/scumm/script_v5.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/scumm/script_v5.cpp b/engines/scumm/script_v5.cpp
index b1545db0f3..5c20e0dfd3 100644
--- a/engines/scumm/script_v5.cpp
+++ b/engines/scumm/script_v5.cpp
@@ -2594,6 +2594,17 @@ void ScummEngine_v5::decodeParseString() {
else
strcpy((char *)tmpBuf+16, "^19^");
printString(textSlot, tmpBuf);
+ } else if (_game.id == GID_MONKEY_EGA && _roomResource == 30 && vm.slot[_currentScript].number == 411 &&
+ strstr((const char *)_scriptPointer, "NCREDIT-NOTE-AMOUNT")) {
+ // WORKAROUND for bug #3003643 (MI1EGA German: Credit text incorrect)
+ // The script contains buggy text.
+ const char *tmp = strstr((const char *)_scriptPointer, "NCREDIT-NOTE-AMOUNT");
+ char tmpBuf[256];
+ const int diff = tmp - (const char *)_scriptPointer;
+ memcpy(tmpBuf, _scriptPointer, diff);
+ strcpy(tmpBuf + diff, "5000");
+ strcpy(tmpBuf + diff + 4, tmp + sizeof("NCREDIT-NOTE-AMOUNT") - 1);
+ printString(textSlot, (byte *)tmpBuf);
} else {
printString(textSlot, _scriptPointer);
}