[Scummvm-git-logs] scummvm master -> 3f4c54355c7ee83c0cf3c3f7fc7d7d968f8518f0

sev- sev at scummvm.org
Thu Mar 8 23:40:17 CET 2018


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
3f4c54355c BLADERUNNER: Cleanup floating point constants


Commit: 3f4c54355c7ee83c0cf3c3f7fc7d7d968f8518f0
    https://github.com/scummvm/scummvm/commit/3f4c54355c7ee83c0cf3c3f7fc7d7d968f8518f0
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2018-03-08T23:39:56+01:00

Commit Message:
BLADERUNNER: Cleanup floating point constants

Changed paths:
    engines/bladerunner/script/ai/bryant.cpp
    engines/bladerunner/script/ai/shoeshine_man.cpp


diff --git a/engines/bladerunner/script/ai/bryant.cpp b/engines/bladerunner/script/ai/bryant.cpp
index 2cda2f8..174a9d0 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 da31bb8..2b8eb04 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);





More information about the Scummvm-git-logs mailing list