mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:12:54 +08:00
Fix slider sliding samples allocation
This commit is contained in:
parent
b272d34960
commit
21b11092d6
@ -239,11 +239,11 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
||||
if (Tracking.Value && Time.Current >= HitObject.StartTime)
|
||||
{
|
||||
// keep the sliding sample playing at the current tracking position
|
||||
if (!slidingSample.IsPlaying)
|
||||
if (!slidingSample.RequestedPlaying)
|
||||
slidingSample.Play();
|
||||
slidingSample.Balance.Value = CalculateSamplePlaybackBalance(CalculateDrawableRelativePosition(Ball));
|
||||
}
|
||||
else if (slidingSample.IsPlaying)
|
||||
else if (slidingSample.IsPlaying || slidingSample.RequestedPlaying)
|
||||
slidingSample.Stop();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user