mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Compare by milliseconds for length
This commit is contained in:
@ -49,11 +49,7 @@ namespace osu.Game.Screens.Select.Carousel
|
||||
return Beatmap.StarDifficulty.CompareTo(otherBeatmap.Beatmap.StarDifficulty);
|
||||
|
||||
case SortMode.Length:
|
||||
// Length comparing must be in seconds
|
||||
if (TimeSpan.FromMilliseconds(Beatmap.Length).Seconds != TimeSpan.FromMilliseconds(otherBeatmap.Beatmap.Length).Seconds)
|
||||
return Beatmap.Length.CompareTo(otherBeatmap.Beatmap.Length);
|
||||
|
||||
goto case SortMode.Difficulty;
|
||||
return Beatmap.Length.CompareTo(otherBeatmap.Beatmap.Length);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user