From d4848da0420315e7e74338b6fc4e34ef1c391bde Mon Sep 17 00:00:00 2001
From: Gede Hari <harikresnagede@gmail.com>
Date: Thu, 10 Dec 2020 08:58:46 +0800
Subject: [PATCH] Freeplay song not continuing fade in when exiting freeplay
 menu

---
 source/MainMenuState.hx | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/source/MainMenuState.hx b/source/MainMenuState.hx
index cabf8f046..ecda7d3bf 100644
--- a/source/MainMenuState.hx
+++ b/source/MainMenuState.hx
@@ -95,6 +95,11 @@ class MainMenuState extends MusicBeatState
 
 	override function update(elapsed:Float)
 	{
+		if (FlxG.sound.music.volume < 1)
+		{
+			FlxG.sound.music.volume += 0.5 * FlxG.elapsed;
+		}
+
 		if (!selectedSomethin)
 		{
 			if (controls.UP_P)