1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 04:02:57 +08:00

Remove unnecessary beatmap storage

This commit is contained in:
Dean Herbert 2019-10-08 12:04:13 +09:00
parent 449e53ee6d
commit a0bb193342

View File

@ -53,8 +53,6 @@ namespace osu.Game.Screens.Menu
private LeasedBindable<WorkingBeatmap> beatmap;
public new Bindable<WorkingBeatmap> Beatmap => beatmap;
protected override BackgroundScreen CreateBackground() => new BackgroundScreenBlack();
protected void StartTrack()
@ -68,7 +66,7 @@ namespace osu.Game.Screens.Menu
private void load(OsuConfigManager config, SkinManager skinManager, BeatmapManager beatmaps, Framework.Game game)
{
// prevent user from changing beatmap while the intro is still runnning.
beatmap = base.Beatmap.BeginLease(false);
beatmap = Beatmap.BeginLease(false);
MenuVoice = config.GetBindable<bool>(OsuSetting.MenuVoice);
MenuMusic = config.GetBindable<bool>(OsuSetting.MenuMusic);