1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-21 21:40:56 +08:00

Stop fail sample when rewinding to before it in replay

closes https://github.com/ppy/osu/issues/34688

I originally wrote it this way semi-intentionally because I thought
cutting out the sample was worse than letting it play out, but I also
forgot that people use like seventy hour long fail samples.
This commit is contained in:
Bartłomiej Dach
2025-08-18 08:56:35 +02:00
Unverified
parent 5b1b22cb66
commit 59ec6ed2eb
+4 -1
View File
@@ -155,8 +155,11 @@ namespace osu.Game.Screens.Play
failSample.Play();
}
if (Time.Current < failTime)
if (Time.Current < failTime && failSamplePlaybackInitiated)
{
failSamplePlaybackInitiated = false;
failSample.Stop();
}
}
protected override void Dispose(bool isDisposing)