1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 12:43:16 +08:00

Minor tidying

This commit is contained in:
Dean Herbert 2019-08-21 14:01:07 +09:00
parent 33946f0458
commit 724365c6d1

View File

@ -37,7 +37,7 @@ namespace osu.Game.Screens.Menu
[BackgroundDependencyLoader]
private void load(OsuConfigManager config, BeatmapManager beatmaps, Framework.Game game)
{
// we take a lease on the beatmap bindable to prevent music playback from changing / pausing during intros, as it is causing weird interactions with certains intros.
// prevent user from changing beatmap while the intro is still runnning.
beatmap = base.Beatmap.BeginLease(false);
menuVoice = config.GetBindable<bool>(OsuSetting.MenuVoice);
@ -114,9 +114,9 @@ namespace osu.Game.Screens.Menu
protected void LoadMenu()
{
DidLoadMenu = true;
beatmap.Return();
DidLoadMenu = true;
this.Push(mainMenu);
}
}