Attempt to merge conditional expression

Hoping to fix CI error, caused by older R# version.
This commit is contained in:
Dan Balasescu 2022-03-09 17:46:41 +09:00
parent e689973de5
commit 353b251d38

View File

@ -168,7 +168,7 @@ namespace osu.Game.Rulesets.Osu.Mods
if (previous != null)
{
Vector2 earliestPosition = beforePrevious == null ? playfield_centre : beforePrevious.HitObject.EndPosition;
Vector2 earliestPosition = beforePrevious?.HitObject.EndPosition ?? playfield_centre;
Vector2 relativePosition = previous.HitObject.Position - earliestPosition;
previousAbsoluteAngle = (float)Math.Atan2(relativePosition.Y, relativePosition.X);
}