From 34e9877f4b5f30591334bc421f05179023de5f4f Mon Sep 17 00:00:00 2001 From: CharlesCatYT Date: Tue, 13 Feb 2024 21:35:18 -0500 Subject: [PATCH] Update TitleState.hx --- source/states/TitleState.hx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/source/states/TitleState.hx b/source/states/TitleState.hx index eb967ed..9e5a625 100644 --- a/source/states/TitleState.hx +++ b/source/states/TitleState.hx @@ -572,9 +572,12 @@ class TitleState extends MusicBeatState { switch (sickBeats) { case 1: - //FlxG.sound.music.stop(); - FlxG.sound.playMusic(Paths.music('freakyMenu'), 0); - FlxG.sound.music.fadeIn(4, 0, 0.7); + if (!initialized) { + if (FlxG.sound.music == null) { + FlxG.sound.playMusic(Paths.music('freakyMenu'), 0); + FlxG.sound.music.fadeIn(4, 0, 0.7); + } + } case 2: #if ALLEYWAY_WATERMARKS createCoolText(['Alleyway Engine', 'by'], 40);