mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Combine config and time checks into one
Functionally equivalent right now, but the combined variant is more localised to what it actually needs to do, and less error-prone if any new code gets appended to the method.
This commit is contained in:
@ -369,9 +369,7 @@ namespace osu.Game.Rulesets.Edit
|
||||
{
|
||||
EditorBeatmap.Add(hitObject);
|
||||
|
||||
if (!seekToHitObject.Value) return;
|
||||
|
||||
if (EditorClock.CurrentTime < hitObject.StartTime)
|
||||
if (seekToHitObject.Value && EditorClock.CurrentTime < hitObject.StartTime)
|
||||
EditorClock.SeekSmoothlyTo(hitObject.StartTime);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user