mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 08:43:01 +08:00
Add accidentally deleted code
This commit is contained in:
parent
2fb9b5dd69
commit
8b8e67fd72
@ -123,6 +123,15 @@ namespace osu.Game.Screens.Menu
|
||||
var track = Beatmap.Value.Track;
|
||||
var metadata = Beatmap.Value.Metadata;
|
||||
|
||||
if (last is Intro && track != null)
|
||||
{
|
||||
if (!track.IsRunning)
|
||||
{
|
||||
track.Seek(metadata.PreviewTime != -1 ? metadata.PreviewTime : 0.4f * track.Length);
|
||||
track.Start();
|
||||
}
|
||||
}
|
||||
|
||||
Beatmap.ValueChanged += beatmap_ValueChanged;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user