diff options
author | Travis Howell | 2007-02-23 10:18:14 +0000 |
---|---|---|
committer | Travis Howell | 2007-02-23 10:18:14 +0000 |
commit | 47280b3301ae3b628dce593beb602ac6ada75b97 (patch) | |
tree | 3fe0a7d14a1a696ee8b8ae10357f5bd5f875ad74 /engines/agos/res.cpp | |
parent | f1f28b61a981293c22fbf16e4b8e27c0206e68c3 (diff) | |
download | scummvm-rg350-47280b3301ae3b628dce593beb602ac6ada75b97.tar.gz scummvm-rg350-47280b3301ae3b628dce593beb602ac6ada75b97.tar.bz2 scummvm-rg350-47280b3301ae3b628dce593beb602ac6ada75b97.zip |
Fix bug #1600999 - SIMON2: Crash while talking to Bingo Bongo. A regression due to the work around for extra long strings been broken, when support for the Feeble Files was added in the past.
svn-id: r25807
Diffstat (limited to 'engines/agos/res.cpp')
-rw-r--r-- | engines/agos/res.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/agos/res.cpp b/engines/agos/res.cpp index e1a4129fb1..a7da0fb8d7 100644 --- a/engines/agos/res.cpp +++ b/engines/agos/res.cpp @@ -658,12 +658,13 @@ void AGOSEngine::loadVGAVideoFile(uint id, uint type) { uint32 file, offs, srcSize, dstSize; uint extraBuffer = 0; - if (getGameType() == GType_SIMON1 || getGameType() == GType_SIMON2) { - // !!! HACK !!! + if ((getGameType() == GType_SIMON1 || getGameType() == GType_SIMON2) && + id == 2 && type == 2) { + // WORKAROUND: For the exta long strings in foreign languages // Allocate more space for text to cope with foreign languages that use // up more space than english. I hope 6400 bytes are enough. This number // is base on: 2 (lines) * 320 (screen width) * 10 (textheight) -- olki - extraBuffer = (id == 5 ? 6400 : 0); + extraBuffer += 6400; } if (getFeatures() & GF_ZLIBCOMP) { |