From 400a399cb6522ec8bb42c5d39a5806f162c4f980 Mon Sep 17 00:00:00 2001 From: Ralty <78720179+Raltyro@users.noreply.github.com> Date: Tue, 22 Jul 2025 19:18:53 +0700 Subject: [PATCH] remove STRIPPED_COMPILE, other small small changes --- project.xml | 2 +- source/funkin/backend/utils/CoolUtil.hx | 2 +- source/funkin/editors/ui/UIWarningSubstate.hx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/project.xml b/project.xml index 31cffad6..9c072a12 100644 --- a/project.xml +++ b/project.xml @@ -113,7 +113,7 @@ - + diff --git a/source/funkin/backend/utils/CoolUtil.hx b/source/funkin/backend/utils/CoolUtil.hx index 16f55549..aaea5e06 100644 --- a/source/funkin/backend/utils/CoolUtil.hx +++ b/source/funkin/backend/utils/CoolUtil.hx @@ -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; diff --git a/source/funkin/editors/ui/UIWarningSubstate.hx b/source/funkin/editors/ui/UIWarningSubstate.hx index 7b1f775a..9fdcdb91 100644 --- a/source/funkin/editors/ui/UIWarningSubstate.hx +++ b/source/funkin/editors/ui/UIWarningSubstate.hx @@ -98,7 +98,7 @@ class UIWarningSubstate extends MusicBeatSubstate { add(sprIcon); messageSpr.x = sprIcon.x + 70 + 16 + 20; - messageSpr.y = sprIcon.y + 16; + messageSpr.y = sprIcon.y; add(messageSpr); var xPos = (FlxG.width - (30 + (170 * buttons.length))) / 2;