mirror of
https://github.com/ppy/osu
synced 2024-12-15 03:16:17 +00: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)
|
if (Tracking.Value && Time.Current >= HitObject.StartTime)
|
||||||
{
|
{
|
||||||
// keep the sliding sample playing at the current tracking position
|
// keep the sliding sample playing at the current tracking position
|
||||||
if (!slidingSample.IsPlaying)
|
if (!slidingSample.RequestedPlaying)
|
||||||
slidingSample.Play();
|
slidingSample.Play();
|
||||||
slidingSample.Balance.Value = CalculateSamplePlaybackBalance(CalculateDrawableRelativePosition(Ball));
|
slidingSample.Balance.Value = CalculateSamplePlaybackBalance(CalculateDrawableRelativePosition(Ball));
|
||||||
}
|
}
|
||||||
else if (slidingSample.IsPlaying)
|
else if (slidingSample.IsPlaying || slidingSample.RequestedPlaying)
|
||||||
slidingSample.Stop();
|
slidingSample.Stop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user