From 3f4c54355c7ee83c0cf3c3f7fc7d7d968f8518f0 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 8 Mar 2018 23:39:56 +0100 Subject: BLADERUNNER: Cleanup floating point constants --- engines/bladerunner/script/ai/bryant.cpp | 8 ++++---- engines/bladerunner/script/ai/shoeshine_man.cpp | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'engines/bladerunner/script') diff --git a/engines/bladerunner/script/ai/bryant.cpp b/engines/bladerunner/script/ai/bryant.cpp index 2cda2f8c49..174a9d09fe 100644 --- a/engines/bladerunner/script/ai/bryant.cpp +++ b/engines/bladerunner/script/ai/bryant.cpp @@ -33,17 +33,17 @@ void AIScriptBryant::Initialize() { _animationStateNext = 0; _animationNext = 0; - World_Waypoint_Set(324, 22, 267.0, -60.299999, 203.0); - World_Waypoint_Set(325, 22, 84.0, -60.299999, 337.0); + World_Waypoint_Set(324, 22, 267.0, -60.30, 203.0); + World_Waypoint_Set(325, 22, 84.0, -60.30, 337.0); World_Waypoint_Set(326, 2, -36.0, 0.0, 185.0); World_Waypoint_Set(327, 2, -166.0, 0.0, -103.0); World_Waypoint_Set(328, 3, -556.0, 252.59, -1018.11); - World_Waypoint_Set(329, 3, -655.0, 252.60001, -1012.0); + World_Waypoint_Set(329, 3, -655.0, 252.60, -1012.0); World_Waypoint_Set(330, 3, -657.0, 253.0, -1127.0); World_Waypoint_Set(331, 102, 163.8, 0.0, 67.0); World_Waypoint_Set(332, 2, -39.0, 0.0, 11.5); World_Waypoint_Set(333, 102, -34.0, 0.0, 33.0); - World_Waypoint_Set(334, 22, 3.0, -60.299999, -144.0); + World_Waypoint_Set(334, 22, 3.0, -60.30, -144.0); World_Waypoint_Set(335, 102, -50.0, 0.0, 212.0); Actor_Put_In_Set(kActorBryant, 22); Actor_Set_Goal_Number(kActorBryant, 100); diff --git a/engines/bladerunner/script/ai/shoeshine_man.cpp b/engines/bladerunner/script/ai/shoeshine_man.cpp index da31bb810b..2b8eb04fc8 100644 --- a/engines/bladerunner/script/ai/shoeshine_man.cpp +++ b/engines/bladerunner/script/ai/shoeshine_man.cpp @@ -56,7 +56,7 @@ void AIScriptShoeshineMan::ClickedByPlayer() { if (Actor_Query_Goal_Number(kActorShoeshineMan) != 100) return; - if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, -1098.15, -0.039999999, -201.53, 0, true, false, 0)) { + if (!Loop_Actor_Walk_To_XYZ(kActorMcCoy, -1098.15, -0.04, -201.53, 0, true, false, 0)) { Actor_Set_Goal_Number(kActorShoeshineMan, 102); Actor_Face_Actor(kActorMcCoy, kActorShoeshineMan, true); Actor_Says_With_Pause(kActorShoeshineMan, 0, 1.2, 13); @@ -104,7 +104,7 @@ bool AIScriptShoeshineMan::GoalChanged(int currentGoalNumber, int newGoalNumber) if (newGoalNumber - 100 <= 1) { if (newGoalNumber == 100) { Actor_Put_In_Set(kActorShoeshineMan, kSetDR01_DR02_DR04); - Actor_Set_At_XYZ(kActorShoeshineMan, -1160.0, -0.039999999, -235.0, 524); + Actor_Set_At_XYZ(kActorShoeshineMan, -1160.0, -0.04, -235.0, 524); } else { AI_Movement_Track_Flush(kActorShoeshineMan); AI_Movement_Track_Append(kActorShoeshineMan, 281, 0); -- cgit v1.2.3