mirror of https://github.com/ppy/osu
Remove pointless max
The clamp should already ensure this.
This commit is contained in:
parent
d0519238a3
commit
fdd94aa845
|
@ -218,7 +218,7 @@ protected override void OnNewBeat(int beatIndex, TimingControlPoint timingPoint,
|
|||
return;
|
||||
|
||||
float progress = (float)(gameplayClock.CurrentTime - displayTime) / (float)(fadeOutBeginTime - displayTime);
|
||||
float newWidth = Math.Max(0, 1 - Math.Clamp(progress, 0, 1));
|
||||
float newWidth = 1 - Math.Clamp(progress, 0, 1);
|
||||
remainingTimeBox.ResizeWidthTo(newWidth, timingPoint.BeatLength * 2, Easing.OutQuint);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue