mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Small optimization to the main menu intro seeking.
This commit is contained in:
@ -94,9 +94,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
{
|
{
|
||||||
if (!track.IsRunning)
|
if (!track.IsRunning)
|
||||||
{
|
{
|
||||||
track.Seek(metadata.PreviewTime);
|
track.Seek(metadata.PreviewTime != -1 ? metadata.PreviewTime : 0.4f * track.Length);
|
||||||
if (metadata.PreviewTime == -1)
|
|
||||||
track.Seek(track.Length * 0.4f);
|
|
||||||
track.Start();
|
track.Start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user