mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 19:22:56 +08:00
Merge pull request #1040 from MrTheMake/previewtime-seeking
Fix double-seek in main menu song playback
This commit is contained in:
commit
db35b0ab31
@ -94,9 +94,7 @@ namespace osu.Game.Screens.Menu
|
||||
{
|
||||
if (!track.IsRunning)
|
||||
{
|
||||
track.Seek(metadata.PreviewTime);
|
||||
if (metadata.PreviewTime == -1)
|
||||
track.Seek(track.Length * 0.4f);
|
||||
track.Seek(metadata.PreviewTime != -1 ? metadata.PreviewTime : 0.4f * track.Length);
|
||||
track.Start();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user