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:
parent
bf87a4b2d3
commit
8654a0af05
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user