1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-05 10:33:22 +08:00

fix ?. on SafeSubmit calls

This commit is contained in:
OliBomby 2024-10-18 00:03:53 +02:00
parent e580932cb3
commit 0ac520dec8
2 changed files with 4 additions and 4 deletions

View File

@ -173,7 +173,7 @@ namespace osu.Game.Rulesets.Osu.Edit
if (!Precision.AlmostEquals(flippedPosition, h.Position))
{
changeHandler?.SafeSubmit(new PositionChange(h, flippedPosition));
changeHandler.SafeSubmit(new PositionChange(h, flippedPosition));
didFlip = true;
}
@ -182,7 +182,7 @@ namespace osu.Game.Rulesets.Osu.Edit
didFlip = true;
foreach (var cp in slider.Path.ControlPoints)
changeHandler?.SafeSubmit(new PathControlPointPositionChange(cp, GeometryUtils.GetFlippedPosition(flipAxis, controlPointFlipQuad, cp.Position)));
changeHandler.SafeSubmit(new PathControlPointPositionChange(cp, GeometryUtils.GetFlippedPosition(flipAxis, controlPointFlipQuad, cp.Position)));
}
}
@ -212,7 +212,7 @@ namespace osu.Game.Rulesets.Osu.Edit
delta.Y -= quad.BottomRight.Y - DrawHeight;
foreach (var h in hitObjects)
changeHandler?.SafeSubmit(new PositionChange(h, h.Position + delta));
changeHandler.SafeSubmit(new PositionChange(h, h.Position + delta));
}
/// <summary>

View File

@ -124,7 +124,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
// handle positional change etc.
foreach (var blueprint in SelectionBlueprints)
changeHandler?.SafeSubmit(new QueueUpdateHitObject(Beatmap, blueprint.Item));
changeHandler.SafeSubmit(new QueueUpdateHitObject(Beatmap, blueprint.Item));
}
protected override bool OnDoubleClick(DoubleClickEvent e)