1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 08:32:57 +08:00

Avoid strong hits cutting off other strong hits

This commit is contained in:
Dean Herbert 2023-07-06 14:05:47 +09:00
parent a87a631c50
commit 5af4aa8741

View File

@ -79,11 +79,19 @@ namespace osu.Game.Rulesets.Taiko.UI
return false;
}
if (strong && hitType == HitType.Centre)
flushCenterTriggerSources();
if (strong)
{
switch (hitType)
{
case HitType.Centre:
flushCenterTriggerSources();
break;
if (strong && hitType == HitType.Rim)
flushRimTriggerSources();
case HitType.Rim:
flushRimTriggerSources();
break;
}
}
triggerSource.Play(hitType, strong);
@ -124,14 +132,12 @@ namespace osu.Game.Rulesets.Taiko.UI
{
leftCentreTrigger.StopAllPlayback();
rightCentreTrigger.StopAllPlayback();
strongCentreTrigger.StopAllPlayback();
}
private void flushRimTriggerSources()
{
leftRimTrigger.StopAllPlayback();
rightRimTrigger.StopAllPlayback();
strongRimTrigger.StopAllPlayback();
}
public void OnReleased(KeyBindingReleaseEvent<TaikoAction> e)