From de0fd08acc676caad7dd2f445f221473d7cd4b75 Mon Sep 17 00:00:00 2001 From: ThePixelGamer Date: Fri, 26 Jul 2024 18:00:57 -0500 Subject: Update libraries and adjust code to match again --- src/KingSystem/System/VFR.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/KingSystem/System/VFR.cpp') diff --git a/src/KingSystem/System/VFR.cpp b/src/KingSystem/System/VFR.cpp index f2ae8d1f..0c53d41d 100644 --- a/src/KingSystem/System/VFR.cpp +++ b/src/KingSystem/System/VFR.cpp @@ -21,7 +21,7 @@ VFR::~VFR() { } void VFR::setDelta(u32 core, f32 delta) { - delta = sead::Mathf::max(delta, 0.01f); + delta = sead::Mathf::clampMin(delta, 0.01f); *mRawDeltaFrames[core] = delta; *mDeltaFrames[core] = delta * *mIntervalRatios[core]; *mRawDeltaTimes[core] = delta * mFrameTime; @@ -111,7 +111,7 @@ void VFR::TimeSpeedMultiplier::update(f32 multiplier) { if (target_value < value) { value = target_value; } else { - sead::Mathf::chase(&value, target_value, sead::Mathf::max(value * multiplier, 0.01)); + sead::Mathf::chase(&value, target_value, sead::Mathf::clampMin(value * multiplier, 0.01)); } } -- cgit v1.2.3