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
1 changed files with 1 additions and 1 deletions

View File

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