aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorThanasis Antoniou2019-07-10 15:55:15 +0300
committerThanasis Antoniou2019-07-10 15:55:15 +0300
commita48944ad24176c1abba1538696d5c5fa4df4ce86 (patch)
tree7c2f6f25a256381cd72578699aaace4c4f794204 /engines
parentf2c4a39d23e9ec2f475af43d2c58b5f7ec8d92a1 (diff)
downloadscummvm-rg350-a48944ad24176c1abba1538696d5c5fa4df4ce86.tar.gz
scummvm-rg350-a48944ad24176c1abba1538696d5c5fa4df4ce86.tar.bz2
scummvm-rg350-a48944ad24176c1abba1538696d5c5fa4df4ce86.zip
BLADERUNNER: Fix bad clause condition for Rat AI
Diffstat (limited to 'engines')
-rw-r--r--engines/bladerunner/script/ai/free_slot_a.cpp4
-rw-r--r--engines/bladerunner/script/ai/free_slot_b.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/engines/bladerunner/script/ai/free_slot_a.cpp b/engines/bladerunner/script/ai/free_slot_a.cpp
index 78f886e002..f7c4849ca6 100644
--- a/engines/bladerunner/script/ai/free_slot_a.cpp
+++ b/engines/bladerunner/script/ai/free_slot_a.cpp
@@ -230,11 +230,11 @@ void AIScriptFreeSlotA::OtherAgentEnteredThisScene(int otherActorId) {
void AIScriptFreeSlotA::OtherAgentExitedThisScene(int otherActorId) {
#if !BLADERUNNER_ORIGINAL_BUGS
if (otherActorId == kActorMcCoy && Actor_Query_Goal_Number(kActorFreeSlotA) == kGoalFreeSlotAGone) {
- if (Global_Variable_Query(kVariableChapter == 4)) {
+ if (Global_Variable_Query(kVariableChapter) == 4) {
Game_Flag_Reset(kFlagRatWalkingAround);
Game_Flag_Reset(kFlagUG15BridgeWillBreak);
Actor_Set_Goal_Number(kActorFreeSlotA, kGoalFreeSlotADefault);
- } else if (Global_Variable_Query(kVariableChapter == 5)) {
+ } else if (Global_Variable_Query(kVariableChapter) == 5) {
Non_Player_Actor_Combat_Mode_Off(kActorFreeSlotA);
Actor_Set_Goal_Number(kActorFreeSlotA, kGoalFreeSlotAAct5Default);
}
diff --git a/engines/bladerunner/script/ai/free_slot_b.cpp b/engines/bladerunner/script/ai/free_slot_b.cpp
index fa8d17f046..f945021254 100644
--- a/engines/bladerunner/script/ai/free_slot_b.cpp
+++ b/engines/bladerunner/script/ai/free_slot_b.cpp
@@ -173,9 +173,9 @@ void AIScriptFreeSlotB::OtherAgentEnteredThisScene(int otherActorId) {
void AIScriptFreeSlotB::OtherAgentExitedThisScene(int otherActorId) {
#if !BLADERUNNER_ORIGINAL_BUGS
if (otherActorId == kActorMcCoy && Actor_Query_Goal_Number(kActorFreeSlotB) == kGoalFreeSlotBGone) {
- if (Global_Variable_Query(kVariableChapter == 4)) {
+ if (Global_Variable_Query(kVariableChapter) == 4) {
Actor_Set_Goal_Number(kActorFreeSlotB, kGoalFreeSlotBAct4Default);
- } else if (Global_Variable_Query(kVariableChapter == 5)) {
+ } else if (Global_Variable_Query(kVariableChapter) == 5) {
Non_Player_Actor_Combat_Mode_Off(kActorFreeSlotB);
Actor_Set_Goal_Number(kActorFreeSlotB, kGoalFreeSlotBAct5Default);
}