1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 08:03:12 +08:00

Minor style fixes.

This commit is contained in:
Dean Herbert 2017-04-25 13:33:34 +09:00
parent 51c577624b
commit f93adebc52

View File

@ -105,15 +105,17 @@ namespace osu.Game.Screens.Menu
base.OnEntering(last); base.OnEntering(last);
buttons.FadeInFromZero(500); buttons.FadeInFromZero(500);
if (last is Intro && song != null) if (last is Intro && song != null)
{
Task.Run(() => Task.Run(() =>
{ {
trackManager.SetExclusive(song.Track); trackManager.SetExclusive(song.Track);
song.Track.Seek(song.Beatmap.Metadata.PreviewTime); song.Track.Seek(song.Beatmap.Metadata.PreviewTime);
if (song.Beatmap.Metadata.PreviewTime == -1) if (song.Beatmap.Metadata.PreviewTime == -1)
song.Track.Seek(song.Track.Length * .4f); song.Track.Seek(song.Track.Length * 0.4f);
song.Track.Start(); song.Track.Start();
}); });
} }
}
protected override void OnSuspending(Screen next) protected override void OnSuspending(Screen next)
{ {