1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 08:32:57 +08:00

Remove unnecessary Math.Max

This commit is contained in:
Dean Herbert 2024-03-26 20:28:03 +08:00
parent fd649edaba
commit e77d4c8cfa
No known key found for this signature in database

View File

@ -130,8 +130,8 @@ namespace osu.Game.Screens.Menu
// To handle expiration simply, arrange all images in best-next order.
// Fade in the first valid one, then handle fading out the last if required.
var currentRotation = content
.Skip(Math.Max(0, previousIndex) + 1)
.Concat(content.Take(Math.Max(0, previousIndex) + 1));
.Skip(previousIndex + 1)
.Concat(content.Take(previousIndex + 1));
// After the loop, displayIndex will be the new valid index or -1 if
// none valid.