diff options
| author | ThePixelGamer <thepixelmaster2354@gmail.com> | 2024-07-26 18:00:57 -0500 |
|---|---|---|
| committer | ThePixelGamer <thepixelmaster2354@gmail.com> | 2024-07-26 18:00:57 -0500 |
| commit | de0fd08acc676caad7dd2f445f221473d7cd4b75 (patch) | |
| tree | 0808bc291b399ccbe9c8fe00b328f94a8da04aff /src/KingSystem/System/VFR.cpp | |
| parent | 96f611fa5d1c2704d91e5c490662ec8c0a741279 (diff) | |
Update libraries and adjust code to match again
Diffstat (limited to 'src/KingSystem/System/VFR.cpp')
| -rw-r--r-- | src/KingSystem/System/VFR.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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)); } } |
