mirror of
https://github.com/ppy/osu
synced 2025-01-18 20:10:49 +00:00
Use MaximumJudgementOffset for lifetime
This commit is contained in:
parent
11e1b22bf5
commit
d8f9b7d02f
@ -232,8 +232,7 @@ namespace osu.Game.Rulesets.UI.Scrolling
|
|||||||
double computedStartTime = computeDisplayStartTime(entry);
|
double computedStartTime = computeDisplayStartTime(entry);
|
||||||
|
|
||||||
// always load the hitobject before its first judgement offset
|
// always load the hitobject before its first judgement offset
|
||||||
double judgementOffset = entry.HitObject.HitWindows?.WindowFor(Scoring.HitResult.Miss) ?? 0;
|
entry.LifetimeStart = Math.Min(entry.HitObject.StartTime - entry.HitObject.MaximumJudgementOffset, computedStartTime);
|
||||||
entry.LifetimeStart = Math.Min(entry.HitObject.StartTime - judgementOffset, computedStartTime);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateLayoutRecursive(DrawableHitObject hitObject, double? parentHitObjectStartTime = null)
|
private void updateLayoutRecursive(DrawableHitObject hitObject, double? parentHitObjectStartTime = null)
|
||||||
|
Loading…
Reference in New Issue
Block a user