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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user