mirror of
https://github.com/ppy/osu.git
synced 2025-03-05 07:02:55 +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)
|
if (ruleset is not ILegacyRuleset legacyRuleset)
|
||||||
return score.TotalScore;
|
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();
|
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
|
return ConvertFromLegacyTotalScore(score, new DifficultyAttributes
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user