1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 10:27:35 +08:00

fix distance

This commit is contained in:
OliBomby 2024-01-01 16:14:20 +01:00
parent b54c9a36fe
commit f8979cff3a

View File

@ -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;
} }