mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 09:27:29 +08:00
clarify comment
This commit is contained in:
parent
351cfbff3e
commit
8ef9bdf861
@ -219,7 +219,7 @@ namespace osu.Game.Rulesets.Osu.Edit
|
||||
{
|
||||
Vector2 pos = rectangularPositionSnapGrid.GetSnappedPosition(rectangularPositionSnapGrid.ToLocalSpace(result.ScreenSpacePosition));
|
||||
|
||||
// A rotated grid can produce a position that is outside of the playfield.
|
||||
// A grid which doesn't perfectly fit the playfield can produce a position that is outside of the playfield.
|
||||
// We need to clamp the position to the playfield bounds to ensure that the snapped position is always in bounds.
|
||||
pos = Vector2.Clamp(pos, Vector2.Zero, OsuPlayfield.BASE_SIZE);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user