mirror of
https://github.com/ppy/osu.git
synced 2024-11-15 10:27:35 +08:00
fix distance
This commit is contained in:
parent
b54c9a36fe
commit
f8979cff3a
@ -110,7 +110,7 @@ namespace osu.Game.Rulesets.Osu.Edit
|
|||||||
|
|
||||||
// Divide the distance so that there is a good density of grid lines.
|
// Divide the distance so that there is a good density of grid lines.
|
||||||
float dist = Vector2.Distance(point1, point2);
|
float dist = Vector2.Distance(point1, point2);
|
||||||
while (dist > 32)
|
while (dist >= max_automatic_spacing)
|
||||||
dist /= 2;
|
dist /= 2;
|
||||||
Spacing.Value = dist;
|
Spacing.Value = dist;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user