mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 08:49:59 +09:00
Change early return to also find the earliest nested object
This commit is contained in:
@ -89,9 +89,9 @@ namespace osu.Game.Rulesets.UI
|
|||||||
.Where(e => e.Result?.HasResult != true).MinBy(e => e.HitObject.StartTime);
|
.Where(e => e.Result?.HasResult != true).MinBy(e => e.HitObject.StartTime);
|
||||||
|
|
||||||
if (fallbackObject != null)
|
if (fallbackObject != null)
|
||||||
return fallbackObject.HitObject;
|
return getEarliestNestedObject(fallbackObject.HitObject);
|
||||||
|
|
||||||
// In the case there are no unjudged objects, the last hit object should be used instead.
|
// In the case there are no non-judged objects, the last hit object should be used instead.
|
||||||
fallbackObject ??= hitObjectContainer.Entries.LastOrDefault();
|
fallbackObject ??= hitObjectContainer.Entries.LastOrDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user