1
0
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:
Henry Lin 2021-07-01 10:07:26 +08:00
parent 3c1f0452a2
commit 328dcb4d6b

View File

@ -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;
}