mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:12:54 +08:00
Fix GameplaySampleTriggerSource
not handling rewinds correctly
This commit is contained in:
parent
2e98ab0a48
commit
753db044b4
@ -69,6 +69,14 @@ namespace osu.Game.Rulesets.UI
|
|||||||
hitSound.Play();
|
hitSound.Play();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
protected override void Update()
|
||||||
|
{
|
||||||
|
base.Update();
|
||||||
|
|
||||||
|
if (gameplayClock?.IsRewinding == true)
|
||||||
|
mostValidObject = null;
|
||||||
|
}
|
||||||
|
|
||||||
protected HitObject? GetMostValidObject()
|
protected HitObject? GetMostValidObject()
|
||||||
{
|
{
|
||||||
if (mostValidObject == null || isAlreadyHit(mostValidObject))
|
if (mostValidObject == null || isAlreadyHit(mostValidObject))
|
||||||
|
Loading…
Reference in New Issue
Block a user