From 8b6b91cc23e96c8f6a93780fda2ed752db123b8e Mon Sep 17 00:00:00 2001 From: Hundrec Date: Wed, 18 Jun 2025 12:02:35 +0800 Subject: [PATCH] Fix build errors for MathUtil --- assets | 2 +- source/funkin/ui/options/FunkinSoundTray.hx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets b/assets index c43d906d1..8c1fe1619 160000 --- a/assets +++ b/assets @@ -1 +1 @@ -Subproject commit c43d906d19d91d71b9096e65d5e0d3543af8cd31 +Subproject commit 8c1fe161958a7b14cea1b84e0d342f15b342731e diff --git a/source/funkin/ui/options/FunkinSoundTray.hx b/source/funkin/ui/options/FunkinSoundTray.hx index 4998dd485..6dd070a09 100644 --- a/source/funkin/ui/options/FunkinSoundTray.hx +++ b/source/funkin/ui/options/FunkinSoundTray.hx @@ -72,8 +72,8 @@ class FunkinSoundTray extends FlxSoundTray override public function update(ms:Float):Void { - y = MathUtil.smoothLerpPrecision(y, lerpYPos, MS / 1000, 0.768); - alpha = MathUtil.smoothLerpPrecision(alpha, alphaTarget, MS / 1000, 0.307); + y = MathUtil.smoothLerpPrecision(y, lerpYPos, ms / 1000, 0.768); + alpha = MathUtil.smoothLerpPrecision(alpha, alphaTarget, ms / 1000, 0.307); // If it has volume, we want to auto-hide after 1 second (1000ms), we simply decrement a timer var hasVolume:Bool = (!FlxG.sound.muted && FlxG.sound.volume > 0);