mirror of https://github.com/ppy/osu
Fix `GameplaySampleTriggerSource` not handling rewinds correctly
This commit is contained in:
parent
af3f9086e5
commit
de74c9eb8b
|
@ -85,6 +85,14 @@ public void StopAllPlayback() => Schedule(() =>
|
|||
sound.Stop();
|
||||
});
|
||||
|
||||
protected override void Update()
|
||||
{
|
||||
base.Update();
|
||||
|
||||
if (gameplayClock?.IsRewinding == true)
|
||||
mostValidObject = null;
|
||||
}
|
||||
|
||||
protected HitObject? GetMostValidObject()
|
||||
{
|
||||
if (mostValidObject == null || isAlreadyHit(mostValidObject))
|
||||
|
|
Loading…
Reference in New Issue