diff options
author | Thanasis Antoniou | 2019-05-09 15:15:33 +0300 |
---|---|---|
committer | Thanasis Antoniou | 2019-05-09 15:15:33 +0300 |
commit | 074baf9b26fcb4efac67b71bea7bf0f979bb7a8f (patch) | |
tree | 889b4c7ba178889ee8f58a4c898fb42005858f91 /engines/bladerunner/script/scene/kp06.cpp | |
parent | 6e84264735986f165b6fe1cf8793337efb1d7875 (diff) | |
download | scummvm-rg350-074baf9b26fcb4efac67b71bea7bf0f979bb7a8f.tar.gz scummvm-rg350-074baf9b26fcb4efac67b71bea7bf0f979bb7a8f.tar.bz2 scummvm-rg350-074baf9b26fcb4efac67b71bea7bf0f979bb7a8f.zip |
BLADERUNNER: Use booleans in walk functions
And a few more (not all yet) methods that had 1, 0 instead of true, false
Diffstat (limited to 'engines/bladerunner/script/scene/kp06.cpp')
-rw-r--r-- | engines/bladerunner/script/scene/kp06.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/bladerunner/script/scene/kp06.cpp b/engines/bladerunner/script/scene/kp06.cpp index 67c4ab1b65..0ec9d88170 100644 --- a/engines/bladerunner/script/scene/kp06.cpp +++ b/engines/bladerunner/script/scene/kp06.cpp @@ -102,7 +102,7 @@ bool SceneScriptKP06::ClickedOnItem(int itemId, bool a2) { bool SceneScriptKP06::ClickedOnExit(int exitId) { if (exitId == 0) { - if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, -868.0f, 8.26f, -68.0f, 0, 1, false, 0)) { + if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, -868.0f, 8.26f, -68.0f, 0, true, false, false)) { Ambient_Sounds_Remove_All_Non_Looping_Sounds(true); Ambient_Sounds_Remove_All_Looping_Sounds(1); Game_Flag_Set(kFlagKP06toKP05); @@ -115,7 +115,7 @@ bool SceneScriptKP06::ClickedOnExit(int exitId) { if (Actor_Clue_Query(kActorSadik, kCluePowerSource) || Actor_Query_Goal_Number(kActorSadik) != kGoalSadikUG18NeedsReactorCoreFromMcCoy ) { - if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, -731.0f, 8.26f, -657.0f, 0, true, false, 0)) { + if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, -731.0f, 8.26f, -657.0f, 0, true, false, false)) { if (Game_Flag_Query(kFlagMcCoyIsHelpingReplicants)) { if (!Game_Flag_Query(kFlagMcCoyAttackedReplicants)) { Player_Set_Combat_Mode(false); @@ -134,7 +134,7 @@ bool SceneScriptKP06::ClickedOnExit(int exitId) { Actor_Says(kActorSadik, 280, kAnimationModeTalk); Actor_Says(kActorSadik, 290, kAnimationModeTalk); Actor_Clue_Acquire(kActorSadik, kCluePowerSource, true, kActorMcCoy); - Loop_Actor_Walk_To_XYZ(kActorMcCoy, -731.0f, 8.26f, -657.0f, 0, false, true, 0); + Loop_Actor_Walk_To_XYZ(kActorMcCoy, -731.0f, 8.26f, -657.0f, 0, false, true, false); Player_Set_Combat_Mode(false); Ambient_Sounds_Remove_All_Non_Looping_Sounds(true); Ambient_Sounds_Remove_All_Looping_Sounds(1); @@ -181,7 +181,7 @@ void SceneScriptKP06::PlayerWalkedIn() { Actor_Says(kActorSteele, 2580, 15); Actor_Says(kActorSteele, 2590, 12); } - Async_Actor_Walk_To_Waypoint(kActorMcCoy, 551, 0, 0); + Async_Actor_Walk_To_Waypoint(kActorMcCoy, 551, 0, false); Delay(1000); Actor_Says(kActorMcCoy, 6220, -1); Delay(3000); @@ -212,8 +212,8 @@ void SceneScriptKP06::PlayerWalkedIn() { Actor_Says(kActorGaff, 290, 14); Actor_Says(kActorGaff, 300, 15); Actor_Says(kActorMcCoy, 6270, 11); - Async_Actor_Walk_To_Waypoint(kActorMcCoy, 550, 0, 0); - Async_Actor_Walk_To_Waypoint(kActorGaff, 551, 0, 0); + Async_Actor_Walk_To_Waypoint(kActorMcCoy, 550, 0, false); + Async_Actor_Walk_To_Waypoint(kActorGaff, 551, 0, false); Actor_Says(kActorGaff, 310, -1); Delay(3000); Outtake_Play(kOuttakeEnd7, false, -1); @@ -231,7 +231,7 @@ void SceneScriptKP06::PlayerWalkedIn() { } if (Actor_Query_Goal_Number(kActorSadik) == 414) { - Loop_Actor_Walk_To_XYZ(kActorMcCoy, -809.0f, 8.26f, -619.0f, 0, 0, false, 0); + Loop_Actor_Walk_To_XYZ(kActorMcCoy, -809.0f, 8.26f, -619.0f, 0, false, false, false); Actor_Face_Actor(kActorMcCoy, kActorSadik, true); Actor_Set_Goal_Number(kActorSadik, 415); } |