Fix nested hits not being hittable if cut off by parent object ending

This commit is contained in:
Bartłomiej Dach 2023-07-15 18:44:47 +02:00
parent 955aa70e46
commit 041e818892
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,8 @@ protected override void ApplyNormalVisibilityState(DrawableHitObject hitObject,
hitObject.LifetimeEnd = state == ArmedState.Idle || !hitObject.AllJudged
? hitObject.HitObject.GetEndTime() + hitObject.HitObject.HitWindows.WindowFor(HitResult.Miss)
: hitObject.HitStateUpdateTime;
// extend the lifetime end of the object in order to allow its nested strong hit (if any) to be judged.
hitObject.LifetimeEnd += DrawableHit.StrongNestedHit.SECOND_HIT_WINDOW;
}
break;