aboutsummaryrefslogtreecommitdiff
path: root/scumm/script.cpp
diff options
context:
space:
mode:
authorMax Horn2004-08-02 20:55:35 +0000
committerMax Horn2004-08-02 20:55:35 +0000
commit8585d77d34317412dbacbac058d704b98b8a0a78 (patch)
tree9b3f66507963424b7c2acb5c8807f864776b64dd /scumm/script.cpp
parent4289da7d3eb6be36ab02e3c7549b76fc0dd45f88 (diff)
downloadscummvm-rg350-8585d77d34317412dbacbac058d704b98b8a0a78.tar.gz
scummvm-rg350-8585d77d34317412dbacbac058d704b98b8a0a78.tar.bz2
scummvm-rg350-8585d77d34317412dbacbac058d704b98b8a0a78.zip
WORKAROUND for bug #985948 (INDY3VGA: Lockup during conversation with drunken nazi)
svn-id: r14448
Diffstat (limited to 'scumm/script.cpp')
-rw-r--r--scumm/script.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/scumm/script.cpp b/scumm/script.cpp
index 7b7d4098ec..04815b48c0 100644
--- a/scumm/script.cpp
+++ b/scumm/script.cpp
@@ -1059,6 +1059,12 @@ int ScummEngine::resStrLen(const byte *src) const {
chr = *src++;
num++;
+ // WORKAROUND for bug #985948, a script bug in Indy3. See also
+ // the corresponding code in ScummEngine::addMessageToStack().
+ if (_gameId == GID_INDY3 && chr == 0x2E) {
+ continue;
+ }
+
if (chr != 1 && chr != 2 && chr != 3 && chr != 8) {
if (_version == 8) {
src += 4;