Fix music playing while exiting from editor

This commit is contained in:
Desconocidosmh
2019-07-09 00:08:18 +02:00
parent 39f04e497d
commit 338371c3fc
5 changed files with 18 additions and 11 deletions

View File

@ -120,7 +120,7 @@ namespace osu.Game.Screens.Menu
var track = Beatmap.Value.Track;
var metadata = Beatmap.Value.Metadata;
if (last is Intro && track != null)
if (last is Intro && track != null && !Game.MusicController.UserRequestedPause)
{
if (!track.IsRunning)
{
@ -189,6 +189,8 @@ namespace osu.Game.Screens.Menu
//we may have consumed our preloaded instance, so let's make another.
preloadSongSelect();
ResumeIfNoUserPauseRequested();
}
public override bool OnExiting(IScreen next)