ASYLUM: fix a logic error in JumpIfGameFlag

Game scripts now progress more accurately in Scene 2
This commit is contained in:
Alex Bevilacqua 2011-07-19 09:29:53 +08:00 committed by Eugene Sandulenko
parent 83194b47c8
commit a663c3da75
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -445,7 +445,7 @@ IMPLEMENT_OPCODE(JumpIfGameFlag)
if (cmd->param1 < 0)
return;
bool doJump = (cmd->param2) ? _vm->isGameFlagSet((GameFlag)cmd->param1) : _vm->isGameFlagNotSet((GameFlag)cmd->param1);
bool doJump = (cmd->param2) ? _vm->isGameFlagNotSet((GameFlag)cmd->param1) : _vm->isGameFlagSet((GameFlag)cmd->param1);
if (!doJump)
return;