mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 00:53:56 +09: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:
@ -414,7 +414,6 @@ namespace osu.Game.Screens.Play
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
samplePause?.Stop();
|
samplePause?.Stop();
|
||||||
Logger.LogPrint(@"_______sample stopped in performUserRequestedExit");
|
|
||||||
this.Exit();
|
this.Exit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -425,8 +424,6 @@ namespace osu.Game.Screens.Play
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public void Restart()
|
public void Restart()
|
||||||
{
|
{
|
||||||
Logger.LogPrint(@"_______sample stopped in Restart");
|
|
||||||
samplePause?.Stop();
|
|
||||||
sampleRestart?.Play();
|
sampleRestart?.Play();
|
||||||
RestartRequested?.Invoke();
|
RestartRequested?.Invoke();
|
||||||
|
|
||||||
@ -596,7 +593,7 @@ namespace osu.Game.Screens.Play
|
|||||||
{
|
{
|
||||||
GameplayClockContainer.Start();
|
GameplayClockContainer.Start();
|
||||||
IsResuming = false;
|
IsResuming = false;
|
||||||
Logger.LogPrint(@"_______sample stopped in Resume");
|
|
||||||
samplePause?.Stop();
|
samplePause?.Stop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user