Fix hitobjects expiring before fully judged with hidden

This commit is contained in:
Bartłomiej Dach 2021-06-16 00:34:39 +02:00
parent 57f0c47ded
commit 8c558610ab
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ protected override void ApplyNormalVisibilityState(DrawableHitObject hitObject,
// DrawableHitObject sets LifetimeEnd to LatestTransformEndTime if it isn't manually changed.
// in order for the object to not be killed before its actual end time (as the latest transform ends earlier), set lifetime end explicitly.
hitObject.LifetimeEnd = state == ArmedState.Idle
hitObject.LifetimeEnd = state == ArmedState.Idle || !hitObject.AllJudged
? hitObject.HitObject.GetEndTime() + hitObject.HitObject.HitWindows.WindowFor(HitResult.Miss)
: hitObject.HitStateUpdateTime;
}