Skip to content

Commit 4e557f9

Browse files
committed
Fix CoolUtil.playMenuSong volume
1 parent cd7c9f1 commit 4e557f9

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

source/funkin/backend/utils/CoolUtil.hx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -440,11 +440,9 @@ final class CoolUtil
440440
* @param fadeIn
441441
*/
442442
@:noUsing public static function playMenuSong(fadeIn:Bool = false) {
443-
if (FlxG.sound.music == null || !FlxG.sound.music.playing)
444-
{
443+
if (FlxG.sound.music == null || !FlxG.sound.music.playing) {
445444
playMusic(Paths.music(Flags.DEFAULT_MENU_MUSIC), true, fadeIn ? 0 : 1, true, 102);
446-
if (fadeIn)
447-
FlxG.sound.music.fadeIn(4, 0, 0.7);
445+
if (fadeIn) FlxG.sound.music.fadeIn(4, 0, volume);
448446
}
449447
}
450448

0 commit comments

Comments
 (0)