diff options
Diffstat (limited to 'engines/bladerunner/script/ai/transient.cpp')
-rw-r--r-- | engines/bladerunner/script/ai/transient.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/bladerunner/script/ai/transient.cpp b/engines/bladerunner/script/ai/transient.cpp index 3c76e86e29..a8ff812c4b 100644 --- a/engines/bladerunner/script/ai/transient.cpp +++ b/engines/bladerunner/script/ai/transient.cpp @@ -47,14 +47,14 @@ bool AIScriptTransient::Update() { if (Global_Variable_Query(kVariableChapter) == 2 && (Actor_Query_Goal_Number(kActorTransient) == kGoalTransientDefault || Actor_Query_Goal_Number(kActorTransient) == 10)) { Actor_Set_Goal_Number(kActorTransient, 200); } - if (Global_Variable_Query(kVariableChapter) == 3 && Game_Flag_Query(169) && Game_Flag_Query(170) && !Game_Flag_Query(171) && !Game_Flag_Query(172)) { + if (Global_Variable_Query(kVariableChapter) == 3 && Game_Flag_Query(kFlagHomelessShot) && Game_Flag_Query(170) && !Game_Flag_Query(171) && !Game_Flag_Query(172)) { Game_Flag_Set(172); } if (Global_Variable_Query(kVariableChapter) < 4 && Game_Flag_Query(171) && Actor_Query_Goal_Number(kActorTransient) != 6 && Actor_Query_Goal_Number(kActorTransient) != 599) { Actor_Set_Goal_Number(kActorTransient, 6); } - if (Player_Query_Current_Scene() == kSceneCT04 && !Game_Flag_Query(492)) { - Game_Flag_Set(492); + if (Player_Query_Current_Scene() == kSceneCT04 && !Game_Flag_Query(kFlagCT04HomelessTrashFinish)) { + Game_Flag_Set(kFlagCT04HomelessTrashFinish); AI_Countdown_Timer_Reset(kActorTransient, 1); AI_Countdown_Timer_Start(kActorTransient, 1, 12); } @@ -142,7 +142,7 @@ bool AIScriptTransient::ShotAtAndHit() { Actor_Set_Goal_Number(kActorTransient, 599); } - Game_Flag_Set(169); + Game_Flag_Set(kFlagHomelessShot); return false; } @@ -161,7 +161,7 @@ int AIScriptTransient::GetFriendlinessModifierIfGetsClue(int otherActorId, int c bool AIScriptTransient::GoalChanged(int currentGoalNumber, int newGoalNumber) { switch (newGoalNumber) { - case 2: + case kGoalTransientCT04Leave: AI_Movement_Track_Flush(kActorTransient); AI_Movement_Track_Append(kActorTransient, 51, 0); AI_Movement_Track_Append(kActorTransient, 105, 0); @@ -312,7 +312,7 @@ bool AIScriptTransient::UpdateAnimation(int *animation, int *frame) { Actor_Set_Goal_Number(kActorTransient, 3); _animationState = 15; _animationFrame = Slice_Animation_Query_Number_Of_Frames(489) - 1; - Actor_Set_Targetable(kActorTransient, 0); + Actor_Set_Targetable(kActorTransient, false); Actor_Retired_Here(kActorTransient, 120, 24, 1, -1); } break; |