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

@ -303,11 +303,7 @@ namespace osu.Game.Beatmaps
beatmap.BeatmapInfo.Ruleset = ruleset;
// TODO: this should be done in a better place once we actually need to dynamically update it.
beatmap.BeatmapInfo.StarDifficulty = ruleset?.CreateInstance().CreateDifficultyCalculator(new DummyConversionBeatmap(beatmap)).Calculate().StarRating ?? 0;
beatmap.BeatmapInfo.OnlineInfo = new BeatmapOnlineInfo
{
Length = beatmap.CalculateLength(),
};
beatmap.BeatmapInfo.Length = beatmap.CalculateLength();
beatmapInfos.Add(beatmap.BeatmapInfo);
}