Apply a few other code reviews

This commit is contained in:
Dan Balasescu 2023-06-29 17:28:06 +09:00
parent c6ad184d94
commit 426f11b824
3 changed files with 4 additions and 3 deletions

View File

@ -31,7 +31,7 @@ namespace osu.Game.Rulesets.Mania.Difficulty
public override int Version => 20220902;
private IWorkingBeatmap workingBeatmap;
private readonly IWorkingBeatmap workingBeatmap;
public ManiaDifficultyCalculator(IRulesetInfo ruleset, IWorkingBeatmap beatmap)
: base(ruleset, beatmap)

View File

@ -38,7 +38,7 @@ namespace osu.Game.Rulesets.Taiko.Tests
private void addFlyingHit(HitType hitType)
{
var tick = new DrumRollTick(null) { HitWindows = HitWindows.Empty, StartTime = DrawableRuleset.Playfield.Time.Current };
var tick = new DrumRollTick(new DrumRoll()) { HitWindows = HitWindows.Empty, StartTime = DrawableRuleset.Playfield.Time.Current };
DrawableDrumRollTick h;
DrawableRuleset.Playfield.Add(h = new DrawableDrumRollTick(tick) { JudgementType = hitType });

View File

@ -14,6 +14,7 @@ using osu.Framework.Graphics;
using osu.Framework.Logging;
using osu.Game.Beatmaps;
using osu.Game.Database;
using osu.Game.Extensions;
using osu.Game.Overlays;
using osu.Game.Overlays.Notifications;
using osu.Game.Rulesets;
@ -214,7 +215,7 @@ namespace osu.Game
{
foreach (var score in r.All<ScoreInfo>().Where(s => s.IsLegacyScore))
{
if (score.RulesetID is not (0 or 1 or 2 or 3))
if (!score.Ruleset.IsLegacyRuleset())
continue;
if (score.Version >= 30000003)