1
0
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:
iiSaLMaN 2019-07-09 14:47:54 +03:00
parent 11ef65e3e2
commit e0c1fb7818

View File

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