1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 04:02:59 +08:00

Remove unnecessary null checks and debug code

This commit is contained in:
Dean Herbert 2021-03-23 10:38:37 +09:00
parent c4d08463ad
commit 098005393e

View File

@ -133,15 +133,13 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
if (tracking.NewValue)
{
if (!spinningSample.IsPlaying)
spinningSample?.Play();
spinningSample?.VolumeTo(1, 300);
spinningSample.Play();
spinningSample.VolumeTo(1, 300);
}
else
{
if (spinningSample != null)
spinningSample.Volume.Value = 0;
spinningSample?.VolumeTo(0, fade_out_duration);
spinningSample.VolumeTo(0, fade_out_duration);
}
}