mirror of https://github.com/ppy/osu
Clarify criteria of grid spacing subdivision
This commit is contained in:
parent
0a5a463380
commit
fe10621771
|
@ -107,6 +107,7 @@ public void SetGridFromPoints(Vector2 point1, Vector2 point2)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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.
|
||||||
|
// This matches the maximum grid size of the grid size cycling hotkey.
|
||||||
float dist = Vector2.Distance(point1, point2);
|
float dist = Vector2.Distance(point1, point2);
|
||||||
while (dist >= max_automatic_spacing)
|
while (dist >= max_automatic_spacing)
|
||||||
dist /= 2;
|
dist /= 2;
|
||||||
|
|
Loading…
Reference in New Issue