remove STRIPPED_COMPILE, other small small changes

This commit is contained in:
Ralty
2025-07-22 19:18:53 +07:00
parent 9f43f96ef7
commit 400a399cb6
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -443,7 +443,7 @@ final class CoolUtil
*/
@:noUsing public static function playMusic(path:String, Persist:Bool = false, Volume:Float = 1, Looped:Bool = true, DefaultBPM:Float = 102, ?Group:FlxSoundGroup) {
Conductor.reset();
if (FlxG.sound.music == null) FlxG.sound.music = new FlxSound();
if (FlxG.sound.music == null || !FlxG.sound.music.exists) FlxG.sound.music = new FlxSound();
else if (FlxG.sound.music.active) FlxG.sound.music.stop();
FlxG.sound.music.loadEmbedded(path, Looped);
FlxG.sound.music.volume = Volume;