mirror of
https://github.com/ppy/osu
synced 2024-12-13 10:28:17 +00:00
Enable current distance snap when exactly on a hit object
This commit is contained in:
parent
5c066c40b1
commit
cf5211aec9
@ -93,7 +93,7 @@ namespace osu.Game.Rulesets.Edit
|
|||||||
|
|
||||||
private (HitObject before, HitObject after)? getObjectsOnEitherSideOfCurrentTime()
|
private (HitObject before, HitObject after)? getObjectsOnEitherSideOfCurrentTime()
|
||||||
{
|
{
|
||||||
HitObject lastBefore = Playfield.HitObjectContainer.AliveObjects.LastOrDefault(h => h.HitObject.StartTime <= EditorClock.CurrentTime)?.HitObject;
|
HitObject lastBefore = Playfield.HitObjectContainer.AliveObjects.LastOrDefault(h => h.HitObject.StartTime < EditorClock.CurrentTime)?.HitObject;
|
||||||
|
|
||||||
if (lastBefore == null)
|
if (lastBefore == null)
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
Reference in New Issue
Block a user