From 3ede16be16def08cf108bcfc8c0aa36ce191b199 Mon Sep 17 00:00:00 2001 From: EliteMasterEric Date: Sat, 10 Feb 2024 00:50:07 -0500 Subject: [PATCH] Fix issue where Freeplay could be silent sometimes --- source/funkin/ui/freeplay/FreeplayState.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/funkin/ui/freeplay/FreeplayState.hx b/source/funkin/ui/freeplay/FreeplayState.hx index b23ca6e54..3c6b52c6f 100644 --- a/source/funkin/ui/freeplay/FreeplayState.hx +++ b/source/funkin/ui/freeplay/FreeplayState.hx @@ -164,9 +164,9 @@ class FreeplayState extends MusicBeatSubState isDebug = true; #end - if (FlxG.sound.music != null) + if (FlxG.sound.music == null || (FlxG.sound.music != null && !FlxG.sound.music.playing)) { - if (!FlxG.sound.music.playing) FlxG.sound.playMusic(Paths.music('freakyMenu/freakyMenu')); + FlxG.sound.playMusic(Paths.music('freakyMenu/freakyMenu')); } // Add a null entry that represents the RANDOM option