2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-08-06 08:15:39 +00:00

CGroundMovement: Collapse 'dampUnderwater ? 0.2f : 0.2f' conditional

The conditional itself aside, in GM8E v0, this is always assigned as
0.2f.
This commit is contained in:
Lioncash 2020-02-26 04:18:55 -05:00
parent 08604d770a
commit 62330903cc

View File

@ -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);