1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 05:53:10 +08:00

Merge pull request #20720 from peppy/fix-welcome-intro-delay

Fix incorrect delay for non-theme music on "welcome" intro
This commit is contained in:
Dan Balasescu 2022-10-12 16:15:54 +09:00 committed by GitHub
commit 300888b423
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,13 +78,17 @@ namespace osu.Game.Screens.Menu
if (reverbChannel != null) if (reverbChannel != null)
intro.LogoVisualisation.AddAmplitudeSource(reverbChannel); intro.LogoVisualisation.AddAmplitudeSource(reverbChannel);
Scheduler.AddDelayed(() => if (!UsingThemedIntro)
{
StartTrack(); StartTrack();
// this classic intro loops forever. Scheduler.AddDelayed(() =>
{
if (UsingThemedIntro) if (UsingThemedIntro)
{
StartTrack();
// this classic intro loops forever.
Track.Looping = true; Track.Looping = true;
}
const float fade_in_time = 200; const float fade_in_time = 200;