mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 07:42:57 +08:00
Count missing beatmaps as errored items
This commit is contained in:
parent
d3eb06578e
commit
dd9998127e
@ -205,9 +205,14 @@ namespace osu.Game.Database
|
||||
if (ruleset is not ILegacyRuleset legacyRuleset)
|
||||
return score.TotalScore;
|
||||
|
||||
var playableBeatmap = beatmap.GetPlayableBeatmap(ruleset.RulesetInfo, score.Mods);
|
||||
|
||||
if (playableBeatmap.HitObjects.Count == 0)
|
||||
throw new InvalidOperationException("Beatmap contains no hit objects!");
|
||||
|
||||
ILegacyScoreSimulator sv1Simulator = legacyRuleset.CreateLegacyScoreSimulator();
|
||||
|
||||
sv1Simulator.Simulate(beatmap, beatmap.GetPlayableBeatmap(ruleset.RulesetInfo, score.Mods), score.Mods);
|
||||
sv1Simulator.Simulate(beatmap, playableBeatmap, score.Mods);
|
||||
|
||||
return ConvertFromLegacyTotalScore(score, new DifficultyAttributes
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user