aboutsummaryrefslogtreecommitdiff
path: root/engines/bladerunner/script/ai/officer_leary.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/bladerunner/script/ai/officer_leary.cpp')
-rw-r--r--engines/bladerunner/script/ai/officer_leary.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/bladerunner/script/ai/officer_leary.cpp b/engines/bladerunner/script/ai/officer_leary.cpp
index 9b85a4cdf8..da6cdfc7e5 100644
--- a/engines/bladerunner/script/ai/officer_leary.cpp
+++ b/engines/bladerunner/script/ai/officer_leary.cpp
@@ -20,7 +20,7 @@
*
*/
-#include "bladerunner/script/ai.h"
+#include "bladerunner/script/ai_script.h"
namespace BladeRunner {
@@ -45,7 +45,7 @@ bool AIScriptOfficerLeary::Update() {
} else if (Global_Variable_Query(1) == 5 && Actor_Query_Goal_Number(kActorOfficerLeary) < 400) {
AI_Movement_Track_Flush(kActorOfficerLeary);
Actor_Set_Goal_Number(kActorOfficerLeary, 400);
- } else if (!Game_Flag_Query(182) && Game_Flag_Query(147) == 1 && Game_Flag_Query(163) == 1 && Player_Query_Current_Scene() != 78 && Global_Variable_Query(1) < 3) {
+ } else if (!Game_Flag_Query(182) && Game_Flag_Query(147) == 1 && Game_Flag_Query(kFlagChromeDebrisTaken) == 1 && Player_Query_Current_Scene() != 78 && Global_Variable_Query(1) < 3) {
Game_Flag_Set(kFlagRC01PoliceDone);
Actor_Set_Goal_Number(kActorOfficerLeary, 3);
} else if (Actor_Query_Goal_Number(kActorOfficerLeary) != 1 && Actor_Query_Goal_Number(kActorOfficerLeary) != 2 && Game_Flag_Query(199) == 1) {
@@ -854,7 +854,7 @@ bool AIScriptOfficerLeary::UpdateAnimation(int *animation, int *frame) {
*frame = var_45D5B4_animation_frame;
return true;
case 0:
- if (Game_Flag_Query(199) && !Game_Flag_Query(392)) {
+ if (Game_Flag_Query(199) && !Game_Flag_Query(KFlagMcCoyAndOfficerLearyTalking)) {
var_45D5B0_animation_state = 31;
var_45D5B4_animation_frame = 0;
*animation = 604;