mirror of
https://github.com/ppy/osu.git
synced 2024-12-05 12:12:54 +08:00
Apply a few other code reviews
This commit is contained in:
parent
c6ad184d94
commit
426f11b824
@ -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)
|
||||
|
@ -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 });
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user