1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-14 15:17:27 +08:00

Fix GameplaySampleTriggerSource not handling rewinds correctly

This commit is contained in:
Dean Herbert 2023-07-06 14:06:40 +09:00
parent af3f9086e5
commit de74c9eb8b

View File

@ -85,6 +85,14 @@ namespace osu.Game.Rulesets.UI
sound.Stop(); sound.Stop();
}); });
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))