1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 04:13:00 +08:00

Clean up a few remaining stragglers.

This commit is contained in:
smoogipooo 2017-04-15 06:15:55 +09:00
parent 4a149c4ab8
commit ddce3c157f
3 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ namespace osu.Game.Beatmaps
/// Calculates the star difficulty for this Beatmap.
/// </summary>
/// <returns>The star difficulty.</returns>
public double CalculateStarDifficulty() => RulesetCollection.GetRuleset(BeatmapInfo.Mode).CreateDifficultyCalculator(this).Calculate();
public double CalculateStarDifficulty() => BeatmapInfo.Ruleset.CreateDifficultyCalculator(this).Calculate();
/// <summary>
/// Constructs a new beatmap.

View File

@ -45,7 +45,7 @@ namespace osu.Game.Beatmaps.Drawables
Origin = Anchor.Centre,
TextSize = Size.X,
Colour = Color4.White,
Icon = RulesetCollection.GetRuleset((int)beatmap.Mode).Icon
Icon = beatmap.Ruleset.Icon
}
};
}

View File

@ -100,7 +100,7 @@ namespace osu.Game.Screens.Select
}));
//get statistics fromt he current ruleset.
labels.AddRange(RulesetCollection.GetRuleset(beatmap.BeatmapInfo.Mode).GetBeatmapStatistics(beatmap).Select(s => new InfoLabel(s)));
labels.AddRange(beatmap.BeatmapInfo.Ruleset.GetBeatmapStatistics(beatmap).Select(s => new InfoLabel(s)));
}
AlwaysPresent = true;