mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 21:07:33 +08:00
Compare by milliseconds for length
This commit is contained in:
parent
11ef65e3e2
commit
e0c1fb7818
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user