mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 12:57:36 +08:00
Rename origin
to center
for clarity
This commit is contained in:
parent
283d953c4f
commit
e6b28e1386
@ -146,11 +146,11 @@ namespace osu.Game.Rulesets.Osu.Mods
|
||||
|
||||
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
Block a user