mirror of
https://github.com/ppy/osu.git
synced 2026-05-30 16:20:25 +08:00
Fix GameplaySampleTriggerSource not handling rewinds correctly
This commit is contained in:
@@ -85,6 +85,14 @@ namespace osu.Game.Rulesets.UI
|
||||
sound.Stop();
|
||||
});
|
||||
|
||||
protected override void Update()
|
||||
{
|
||||
base.Update();
|
||||
|
||||
if (gameplayClock?.IsRewinding == true)
|
||||
mostValidObject = null;
|
||||
}
|
||||
|
||||
protected HitObject? GetMostValidObject()
|
||||
{
|
||||
if (mostValidObject == null || isAlreadyHit(mostValidObject))
|
||||
|
||||
Reference in New Issue
Block a user