diff options
author | Max Horn | 2010-06-15 23:12:34 +0000 |
---|---|---|
committer | Max Horn | 2010-06-15 23:12:34 +0000 |
commit | 444a6b5976f1f5b41db1db94ae16a8987fff134c (patch) | |
tree | 96006d0edbc394d00b457642de6b05f520729f3a | |
parent | 3f4ec4a8a4bd70bb340a5ba358e8aa4b622ee844 (diff) | |
download | scummvm-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.cpp | 11 |
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); } |