mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 10:22:54 +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
|
#nullable disable
|
||||||
|
|
||||||
|
using System;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
@ -33,7 +34,7 @@ namespace osu.Game.Rulesets.Catch.Objects
|
|||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public float X
|
public float X
|
||||||
{
|
{
|
||||||
set => originalX.Value = value;
|
set => originalX.Value = Math.Clamp(value, 0, CatchPlayfield.WIDTH);
|
||||||
}
|
}
|
||||||
|
|
||||||
private HitObjectProperty<float> xOffset;
|
private HitObjectProperty<float> xOffset;
|
||||||
|
Loading…
Reference in New Issue
Block a user