mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 10:23:04 +08:00
Remove pointless max
The clamp should already ensure this.
This commit is contained in:
parent
d0519238a3
commit
fdd94aa845
@ -218,7 +218,7 @@ namespace osu.Game.Screens.Play
|
||||
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
Block a user