1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 02:22:56 +08:00

remove unnecessary min & renamed variable so its more descriptive

This commit is contained in:
apollo-dw 2021-09-03 03:01:25 +01:00
parent bf87a4b2d3
commit 8654a0af05

View File

@ -51,8 +51,8 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Skills
if (Previous.Count > 0 && deltaTime < deltaTimeThreshold && Previous[0].DeltaTime > deltaTime)
{
double closenessToZero = Math.Min(1, deltaTime / deltaTimeThreshold);
deltaTime = Interpolation.Lerp(Previous[0].DeltaTime, deltaTime, closenessToZero);
double speedWindowRatio = deltaTime / deltaTimeThreshold;
deltaTime = Interpolation.Lerp(Previous[0].DeltaTime, deltaTime, speedWindowRatio);
}
// Cap deltatime to the OD 300 hitwindow.