mirror of
https://github.com/osukey/osukey.git
synced 2025-05-23 06:27:24 +09: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)
|
private Vector2 clampToPlayfield(Vector2 position, float radius)
|
||||||
{
|
{
|
||||||
position.X = MathHelper.Clamp(position.X, radius, OsuPlayfield.BASE_SIZE.X - radius);
|
position.X = Math.Clamp(position.X, radius, OsuPlayfield.BASE_SIZE.X - radius);
|
||||||
position.Y = MathHelper.Clamp(position.Y, radius, OsuPlayfield.BASE_SIZE.Y - radius);
|
position.Y = Math.Clamp(position.Y, radius, OsuPlayfield.BASE_SIZE.Y - radius);
|
||||||
|
|
||||||
return position;
|
return position;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user