1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 11:42:56 +08:00

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

View File

@ -78,7 +78,7 @@ namespace osu.Game.Rulesets.Taiko.Mods
// DrawableHitObject sets LifetimeEnd to LatestTransformEndTime if it isn't manually changed. // 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. // 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.HitObject.GetEndTime() + hitObject.HitObject.HitWindows.WindowFor(HitResult.Miss)
: hitObject.HitStateUpdateTime; : hitObject.HitStateUpdateTime;
} }