Ensure music starts when returning to lounge or main menu

This commit is contained in:
Dean Herbert
2020-07-10 16:33:45 +09:00
parent 49b88971d1
commit 44fdb5b82e
2 changed files with 9 additions and 2 deletions

View File

@ -260,8 +260,8 @@ namespace osu.Game.Screens.Menu
// we may have consumed our preloaded instance, so let's make another.
preloadSongSelect();
if (Beatmap.Value.Track != null && music?.IsUserPaused != true)
Beatmap.Value.Track.Start();
if (music?.IsUserPaused == false)
music.Play();
}
public override bool OnExiting(IScreen next)