mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 05:22:54 +08:00
Avoid strong hits cutting off other strong hits
This commit is contained in:
parent
a87a631c50
commit
5af4aa8741
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user