mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 08:32:57 +08:00
Made X position value of CatchHitObject clamp to CatchPlayfield's width
This commit is contained in:
parent
1914c41d0d
commit
6d7d80a4fb
@ -3,6 +3,7 @@
|
||||
|
||||
#nullable disable
|
||||
|
||||
using System;
|
||||
using Newtonsoft.Json;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Game.Beatmaps;
|
||||
@ -33,7 +34,7 @@ namespace osu.Game.Rulesets.Catch.Objects
|
||||
[JsonIgnore]
|
||||
public float X
|
||||
{
|
||||
set => originalX.Value = value;
|
||||
set => originalX.Value = Math.Clamp(value, 0, CatchPlayfield.WIDTH);
|
||||
}
|
||||
|
||||
private HitObjectProperty<float> xOffset;
|
||||
|
Loading…
Reference in New Issue
Block a user