Remove stray call to LoadTrack that was forgotten

This commit is contained in:
Dean Herbert 2020-08-21 18:52:53 +09:00
parent 4239e9f684
commit f63d1ba612

View File

@ -12,7 +12,6 @@ using osu.Framework.Screens;
using osu.Game.Beatmaps; using osu.Game.Beatmaps;
using osu.Game.Configuration; using osu.Game.Configuration;
using osu.Game.IO.Archives; using osu.Game.IO.Archives;
using osu.Game.Overlays;
using osu.Game.Screens.Backgrounds; using osu.Game.Screens.Backgrounds;
using osu.Game.Skinning; using osu.Game.Skinning;
using osuTK; using osuTK;
@ -61,9 +60,6 @@ namespace osu.Game.Screens.Menu
[Resolved] [Resolved]
private AudioManager audio { get; set; } private AudioManager audio { get; set; }
[Resolved]
private MusicController musicController { get; set; }
/// <summary> /// <summary>
/// Whether the <see cref="Track"/> is provided by osu! resources, rather than a user beatmap. /// Whether the <see cref="Track"/> is provided by osu! resources, rather than a user beatmap.
/// Only valid during or after <see cref="LogoArriving"/>. /// Only valid during or after <see cref="LogoArriving"/>.
@ -168,8 +164,8 @@ namespace osu.Game.Screens.Menu
if (!resuming) if (!resuming)
{ {
beatmap.Value = initialBeatmap; beatmap.Value = initialBeatmap;
Track = musicController.CurrentTrack; Track = initialBeatmap.Track;
UsingThemedIntro = !initialBeatmap.LoadTrack().IsDummyDevice; UsingThemedIntro = !initialBeatmap.Track.IsDummyDevice;
logo.MoveTo(new Vector2(0.5f)); logo.MoveTo(new Vector2(0.5f));
logo.ScaleTo(Vector2.One); logo.ScaleTo(Vector2.One);