1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-17 13:42:56 +08:00

Clarify criteria of grid spacing subdivision

This commit is contained in:
OliBomby 2024-09-23 16:39:09 +02:00
parent 0a5a463380
commit fe10621771

View File

@ -107,6 +107,7 @@ namespace osu.Game.Rulesets.Osu.Edit
}
// 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);
while (dist >= max_automatic_spacing)
dist /= 2;