diff options
author | Thanasis Antoniou | 2019-04-09 16:31:39 +0300 |
---|---|---|
committer | Thanasis Antoniou | 2019-04-09 16:32:51 +0300 |
commit | a9404284c3778c087aa1f10428db632880296a99 (patch) | |
tree | c278becceb546ac06d0aae139f40d5a058673308 /engines/bladerunner/script/ai/klein.cpp | |
parent | d8f43160df030abd06f3f941d7edd02b6f4c9fba (diff) | |
download | scummvm-rg350-a9404284c3778c087aa1f10428db632880296a99.tar.gz scummvm-rg350-a9404284c3778c087aa1f10428db632880296a99.tar.bz2 scummvm-rg350-a9404284c3778c087aa1f10428db632880296a99.zip |
BLADERUNNER: Fix Officer Leary crowd interrogation
He will now resume interrogation after McCoy interrupts him
Also used named constants for timers
Diffstat (limited to 'engines/bladerunner/script/ai/klein.cpp')
-rw-r--r-- | engines/bladerunner/script/ai/klein.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/bladerunner/script/ai/klein.cpp b/engines/bladerunner/script/ai/klein.cpp index fc2893d17d..8091feee79 100644 --- a/engines/bladerunner/script/ai/klein.cpp +++ b/engines/bladerunner/script/ai/klein.cpp @@ -72,8 +72,8 @@ bool AIScriptKlein::Update() { && Actor_Query_Friendliness_To_Other(kActorKlein, kActorMcCoy) < 35 && !Game_Flag_Query(kFlagPS07KleinInsulted) ) { - AI_Countdown_Timer_Reset(kActorKlein, 2); - AI_Countdown_Timer_Start(kActorKlein, 2, 5); + AI_Countdown_Timer_Reset(kActorKlein, kActorTimerAIScriptCustomTask2); + AI_Countdown_Timer_Start(kActorKlein, kActorTimerAIScriptCustomTask2, 5); Game_Flag_Set(kFlagPS07KleinInsulted); return true; } @@ -91,7 +91,7 @@ bool AIScriptKlein::Update() { } void AIScriptKlein::TimerExpired(int timer) { - if (timer == 2) { + if (timer == kActorTimerAIScriptCustomTask2) { if ( Game_Flag_Query(kFlagPS07KleinInsulted) && !Game_Flag_Query(kFlagPS07KleinInsultedTalk) && Actor_Query_Is_In_Current_Set(kActorKlein) |