From 95c944563b8e1c0fd65559932ffe056f44f4f03a Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Wed, 2 Jun 2021 22:10:13 -0700 Subject: [PATCH] I'm dumb, it is `std::min' --- Runtime/World/CMorphBall.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/World/CMorphBall.cpp b/Runtime/World/CMorphBall.cpp index 818edf7a2..bbbdc28eb 100644 --- a/Runtime/World/CMorphBall.cpp +++ b/Runtime/World/CMorphBall.cpp @@ -695,7 +695,7 @@ void CMorphBall::ApplySpiderBallRollForces(const CFinalInput& input, CStateManag x18f8_spiderSurfacePivotTargetAngle = angle; } const float minAngle = - std::max(std::fabs(x18f8_spiderSurfacePivotTargetAngle - x18f4_spiderSurfacePivotAngle), 0.2f); + std::min(std::fabs(x18f8_spiderSurfacePivotTargetAngle - x18f4_spiderSurfacePivotAngle), 0.2f); x18f4_spiderSurfacePivotAngle = minAngle * 1.f + x18f4_spiderSurfacePivotAngle; x189c_spiderInterpBetweenPoints = x18c4_spiderSurfaceTransform.rotate(zeus::CTransform::RotateY(x18f4_spiderSurfacePivotAngle).basis[2]);