mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 01:46:42 +00:00
BLADERUNNER: Fix bad clause condition for Rat AI
This commit is contained in:
parent
f2c4a39d23
commit
a48944ad24
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user