Skip to content

Commit 2eac58a

Browse files
committed
fpsLerpTo should use getFPSRatio
1 parent ce98ad0 commit 2eac58a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/funkin/backend/utils/FlxInterpolateColor.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ class FlxInterpolateColor {
3838
alpha = (color.alphaFloat - alpha) * ratio + alpha;
3939
}
4040

41-
public inline function fpsLerpTo(color:FlxColor, ratio:Float)
42-
lerpTo(color, ratio * 60 * FlxG.elapsed);
41+
public inline function fpsLerpTo(color:FlxColor, ratio:Float, ?delta:Float)
42+
lerpTo(color, CoolUtil.getFPSRatio(ratio, delta));
4343
}

0 commit comments

Comments
 (0)