aboutsummaryrefslogtreecommitdiff
path: root/engines/bladerunner/script
diff options
context:
space:
mode:
authorEugene Sandulenko2018-03-08 23:39:56 +0100
committerEugene Sandulenko2018-03-08 23:39:56 +0100
commit3f4c54355c7ee83c0cf3c3f7fc7d7d968f8518f0 (patch)
tree9ea52c45e60b1ad628f723abf5cd0b7916af8615 /engines/bladerunner/script
parent7cc85b156b9680b7ae1dcf146fbc2b654eedaa3d (diff)
downloadscummvm-rg350-3f4c54355c7ee83c0cf3c3f7fc7d7d968f8518f0.tar.gz
scummvm-rg350-3f4c54355c7ee83c0cf3c3f7fc7d7d968f8518f0.tar.bz2
scummvm-rg350-3f4c54355c7ee83c0cf3c3f7fc7d7d968f8518f0.zip
BLADERUNNER: Cleanup floating point constants
Diffstat (limited to 'engines/bladerunner/script')
-rw-r--r--engines/bladerunner/script/ai/bryant.cpp8
-rw-r--r--engines/bladerunner/script/ai/shoeshine_man.cpp4
2 files changed, 6 insertions, 6 deletions
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);