1
0
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:
Bartłomiej Dach 2024-09-19 09:41:54 +02:00
parent d0519238a3
commit fdd94aa845
No known key found for this signature in database

View File

@ -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);
}