aboutsummaryrefslogtreecommitdiff
path: root/engines/bladerunner/script/ai/leon.cpp
diff options
context:
space:
mode:
authorThanasis Antoniou2019-04-09 16:31:39 +0300
committerThanasis Antoniou2019-04-09 16:32:51 +0300
commita9404284c3778c087aa1f10428db632880296a99 (patch)
treec278becceb546ac06d0aae139f40d5a058673308 /engines/bladerunner/script/ai/leon.cpp
parentd8f43160df030abd06f3f941d7edd02b6f4c9fba (diff)
downloadscummvm-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/leon.cpp')
-rw-r--r--engines/bladerunner/script/ai/leon.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/bladerunner/script/ai/leon.cpp b/engines/bladerunner/script/ai/leon.cpp
index 0e1a1156ce..94f3093ee5 100644
--- a/engines/bladerunner/script/ai/leon.cpp
+++ b/engines/bladerunner/script/ai/leon.cpp
@@ -73,18 +73,18 @@ bool AIScriptLeon::Update() {
}
void AIScriptLeon::TimerExpired(int timer) {
- if (timer == 0
+ if (timer == kActorTimerAIScriptCustomTask0
&& Actor_Query_Goal_Number(kActorLeon) == kGoalLeonLeave
) {
- AI_Countdown_Timer_Reset(kActorLeon, 0);
+ AI_Countdown_Timer_Reset(kActorLeon, kActorTimerAIScriptCustomTask0);
Actor_Set_Goal_Number(kActorLeon, kGoalLeonGone);
}
}
void AIScriptLeon::CompletedMovementTrack() {
if (Actor_Query_Goal_Number(kActorLeon) == kGoalLeonLeave) {
- AI_Countdown_Timer_Reset(kActorLeon, 0);
- AI_Countdown_Timer_Start(kActorLeon, 0, 8);
+ AI_Countdown_Timer_Reset(kActorLeon, kActorTimerAIScriptCustomTask0);
+ AI_Countdown_Timer_Start(kActorLeon, kActorTimerAIScriptCustomTask0, 8);
//return true;
}
//return false;
@@ -111,7 +111,7 @@ void AIScriptLeon::OtherAgentEnteredThisScene(int otherActorId) {
if (otherActorId == kActorMcCoy
&& Actor_Query_Goal_Number(kActorLeon) == kGoalLeonLeave
) {
- AI_Countdown_Timer_Reset(kActorLeon, 0);
+ AI_Countdown_Timer_Reset(kActorLeon, kActorTimerAIScriptCustomTask0);
AI_Movement_Track_Flush(kActorLeon);
AI_Movement_Track_Append(kActorLeon, 353, 0);
AI_Movement_Track_Repeat(kActorLeon);