aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2015-04-26 16:38:34 -0500
committerPaul Gilbert2015-04-26 16:38:34 -0500
commit0ca3fd645406a44f272ccc77abbc143523918701 (patch)
treeb856aab6c209a3fe38c5c54bd36b18a29679ce0d /engines
parentfd8cab4ffd38574fd255bd8f6335238ceb19bba8 (diff)
downloadscummvm-rg350-0ca3fd645406a44f272ccc77abbc143523918701.tar.gz
scummvm-rg350-0ca3fd645406a44f272ccc77abbc143523918701.tar.bz2
scummvm-rg350-0ca3fd645406a44f272ccc77abbc143523918701.zip
SHERLOCK: Fix SET_FLAG talk opcode
Diffstat (limited to 'engines')
-rw-r--r--engines/sherlock/talk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sherlock/talk.cpp b/engines/sherlock/talk.cpp
index fafd9ce201..c605f9a7e9 100644
--- a/engines/sherlock/talk.cpp
+++ b/engines/sherlock/talk.cpp
@@ -1274,7 +1274,7 @@ void Talk::doScript(const Common::String &script) {
case SET_FLAG: {
++str;
int flag1 = ((byte)str[0] - 1) * 256 + (byte)str[1] - 1 - (str[1] == 1 ? 1 : 0);
- int flag = (flag1 & 0x7fff) * (flag1 >= 0x8000 ? -1 : 1);
+ int flag = (flag1 & 0x3fff) * (flag1 >= 0x4000 ? -1 : 1);
_vm->setFlags(flag);
++str;
break;