mirror of https://github.com/ppy/osu
Rename `origin` to `center` for clarity
This commit is contained in:
parent
283d953c4f
commit
e6b28e1386
|
@ -146,11 +146,11 @@ protected override void Update()
|
|||
|
||||
if (barrelRollActive)
|
||||
{
|
||||
float origin = restrictTo.ToSpaceOfOtherDrawable(restrictTo.OriginPosition, Parent).X;
|
||||
float center = restrictTo.ToSpaceOfOtherDrawable(restrictTo.OriginPosition, Parent).X;
|
||||
float halfDiagonal = MathF.Sqrt(MathF.Pow(restrictTo.DrawWidth / 2, 2) + MathF.Pow(restrictTo.DrawHeight / 2, 2));
|
||||
|
||||
start = origin - halfDiagonal;
|
||||
end = origin + halfDiagonal;
|
||||
start = center - halfDiagonal;
|
||||
end = center + halfDiagonal;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue