mirror of
https://github.com/ppy/osu
synced 2025-01-26 07:43:08 +00:00
Attempt to merge conditional expression
Hoping to fix CI error, caused by older R# version.
This commit is contained in:
parent
e689973de5
commit
353b251d38
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user