Fix hold note light lingering with No Release

Turns out endHold() is not called in the Tail.IsHit branch of the
hold notes' CheckForResult method.
This commit is contained in:
Nathan Du 2024-07-18 16:08:30 +08:00
parent 3a1c05337d
commit 00ed7a7a2f

View File

@ -268,11 +268,14 @@ namespace osu.Game.Rulesets.Mania.Objects.Drawables
ApplyMaxResult();
else
MissForcefully();
}
// Make sure that the hold note is fully judged by giving the body a judgement.
if (Tail.AllJudged && !Body.AllJudged)
Body.TriggerResult(Tail.IsHit);
// Make sure that the hold note is fully judged by giving the body a judgement.
if (!Body.AllJudged)
Body.TriggerResult(Tail.IsHit);
// Important that this is always called when a result is applied.
endHold();
}
}
public override void MissForcefully()