Move Length out of OnlineInfo

This commit is contained in:
iiSaLMaN
2019-07-07 20:25:36 +03:00
parent 3ea9629daf
commit 729f0901f7
10 changed files with 15 additions and 22 deletions

View File

@ -50,8 +50,8 @@ namespace osu.Game.Screens.Select.Carousel
case SortMode.Length:
// Length comparing must be in seconds
if (TimeSpan.FromMilliseconds(Beatmap.OnlineInfo.Length).Seconds != TimeSpan.FromMilliseconds(otherBeatmap.Beatmap.OnlineInfo.Length).Seconds)
return Beatmap.OnlineInfo.Length.CompareTo(otherBeatmap.Beatmap.OnlineInfo.Length);
if (TimeSpan.FromMilliseconds(Beatmap.Length).Seconds != TimeSpan.FromMilliseconds(otherBeatmap.Beatmap.Length).Seconds)
return Beatmap.Length.CompareTo(otherBeatmap.Beatmap.Length);
goto case SortMode.Difficulty;
}