From 5af4aa874158157ce99aa7c9a1383c4b020409c1 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Thu, 6 Jul 2023 14:05:47 +0900 Subject: [PATCH] Avoid strong hits cutting off other strong hits --- osu.Game.Rulesets.Taiko/UI/DrumSamplePlayer.cs | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/osu.Game.Rulesets.Taiko/UI/DrumSamplePlayer.cs b/osu.Game.Rulesets.Taiko/UI/DrumSamplePlayer.cs index 2797492b0a..7144fd8ca5 100644 --- a/osu.Game.Rulesets.Taiko/UI/DrumSamplePlayer.cs +++ b/osu.Game.Rulesets.Taiko/UI/DrumSamplePlayer.cs @@ -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 e)