mirror of
https://github.com/ppy/osu
synced 2024-12-27 09:23:15 +00:00
Fix "Use current" snap not working
Regressed with https://github.com/ppy/osu/pull/27249. I was suspicious of this specific operation at the time but didn't test properly.
This commit is contained in:
parent
b0c45c87c6
commit
4c744ccb69
@ -132,7 +132,7 @@ namespace osu.Game.Rulesets.Edit
|
||||
if (objTime >= editorClock.CurrentTime)
|
||||
continue;
|
||||
|
||||
if (objTime > lastBefore?.StartTime)
|
||||
if (lastBefore == null || objTime > lastBefore?.StartTime)
|
||||
lastBefore = entry.Value.HitObject;
|
||||
}
|
||||
|
||||
@ -148,7 +148,7 @@ namespace osu.Game.Rulesets.Edit
|
||||
if (objTime < editorClock.CurrentTime)
|
||||
continue;
|
||||
|
||||
if (objTime < firstAfter?.StartTime)
|
||||
if (firstAfter == null || objTime < firstAfter?.StartTime)
|
||||
firstAfter = entry.Value.HitObject;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user