1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 15:03:13 +08:00

Enabled strong taiko hitobjects playing samples again.

Also removes the first hitsound from the strong hitobject so only the "hitfinish" sound gets played.
This commit is contained in:
FreezyLemon 2017-11-29 06:27:25 +01:00
parent bc3f11fdb8
commit 3e8db8c5e1

View File

@ -16,6 +16,8 @@ namespace osu.Game.Rulesets.Taiko.Objects.Drawables
/// </summary>
private const double second_hit_window = 30;
protected override bool PlaysSamples => true;
private double firstHitTime;
private bool firstKeyHeld;
private TaikoAction firstHitAction;
@ -53,6 +55,15 @@ namespace osu.Game.Rulesets.Taiko.Objects.Drawables
return base.OnReleased(action);
}
protected override void LoadComplete()
{
base.LoadComplete();
if (Samples.Count > 1)
// Removes the "normal" hitsound, leaving only the hitfinish one
Samples.RemoveAt(0);
}
public override bool OnPressed(TaikoAction action)
{
if (AllJudged)