mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 09:07:25 +08:00
Use Math.Clamp
instead of MathHelper.Clamp
This commit is contained in:
parent
3c1f0452a2
commit
328dcb4d6b
@ -243,8 +243,8 @@ namespace osu.Game.Rulesets.Osu.Mods
|
||||
|
||||
private Vector2 clampToPlayfield(Vector2 position, float radius)
|
||||
{
|
||||
position.X = MathHelper.Clamp(position.X, radius, OsuPlayfield.BASE_SIZE.X - radius);
|
||||
position.Y = MathHelper.Clamp(position.Y, radius, OsuPlayfield.BASE_SIZE.Y - radius);
|
||||
position.X = Math.Clamp(position.X, radius, OsuPlayfield.BASE_SIZE.X - radius);
|
||||
position.Y = Math.Clamp(position.Y, radius, OsuPlayfield.BASE_SIZE.Y - radius);
|
||||
|
||||
return position;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user