1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 21:07:33 +08:00

Removed duplicate samplepause.stop() calls, removed test lines

Since restart() always call perform immediate exit when the function lead
to a restart, there is no need to stop the pause sample in restart
This commit is contained in:
BananeVolante 2020-06-13 10:31:54 +02:00
parent 6fd8548f79
commit 8b8f2dfda2

View File

@ -414,7 +414,6 @@ namespace osu.Game.Screens.Play
else
{
samplePause?.Stop();
Logger.LogPrint(@"_______sample stopped in performUserRequestedExit");
this.Exit();
}
}
@ -425,8 +424,6 @@ namespace osu.Game.Screens.Play
/// </summary>
public void Restart()
{
Logger.LogPrint(@"_______sample stopped in Restart");
samplePause?.Stop();
sampleRestart?.Play();
RestartRequested?.Invoke();
@ -596,7 +593,7 @@ namespace osu.Game.Screens.Play
{
GameplayClockContainer.Start();
IsResuming = false;
Logger.LogPrint(@"_______sample stopped in Resume");
samplePause?.Stop();
}
}