From 62330903cc4a4f7d4fd36583608384c8d9bd4908 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 26 Feb 2020 04:18:55 -0500 Subject: [PATCH] CGroundMovement: Collapse 'dampUnderwater ? 0.2f : 0.2f' conditional The conditional itself aside, in GM8E v0, this is always assigned as 0.2f. --- Runtime/Character/CGroundMovement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/Character/CGroundMovement.cpp b/Runtime/Character/CGroundMovement.cpp index a7b54eeb2..4c45d8c63 100644 --- a/Runtime/Character/CGroundMovement.cpp +++ b/Runtime/Character/CGroundMovement.cpp @@ -485,7 +485,7 @@ void CGroundMovement::MoveGroundCollider_New(CStateManager& mgr, CPhysicsActor& opts.x24_dampedNormalCoefficient = 0.f; opts.x28_dampedDeltaCoefficient = 1.f; opts.x2c_floorElasticForce = 0.1f; - opts.x30_wallElasticConstant = dampUnderwater ? 0.2f : 0.2f; + opts.x30_wallElasticConstant = 0.2f; opts.x3c_floorPlaneNormal = player.GetLastFloorPlaneNormal(); opts.x38_maxPositiveVerticalVelocity = player.GetMaximumPlayerPositiveVerticalVelocity(mgr);