Skip to content

Commit

Permalink
SHERLOCK: Fix SET_FLAG talk opcode
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Apr 26, 2015
1 parent fd8cab4 commit 0ca3fd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/sherlock/talk.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 0ca3fd6

Please sign in to comment.