1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 06:47:24 +08:00

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