Fix DHO expires while hit sound is playing

This commit is contained in:
ekrctb
2020-12-03 12:32:49 +09:00
parent 6c41830d4d
commit 6c46046c24
2 changed files with 4 additions and 1 deletions

View File

@ -453,7 +453,7 @@ namespace osu.Game.Rulesets.Objects.Drawables
state.Value = newState;
if (LifetimeEnd == double.MaxValue && (state.Value != ArmedState.Idle || HitObject.HitWindows == null))
Expire();
LifetimeEnd = Math.Max(LatestTransformEndTime, HitStateUpdateTime + (Samples?.Length ?? 0));
// apply any custom state overrides
ApplyCustomUpdateState?.Invoke(this, newState);