1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-15 11:22:55 +00:00

stop main menu music from playing when entering freeplay from pausemenu

This commit is contained in:
Cameron Taylor 2024-08-29 13:22:56 -04:00
parent 560badd6b5
commit 0a316c815f
2 changed files with 2 additions and 14 deletions

View file

@ -317,15 +317,6 @@ class FreeplayState extends MusicBeatSubState
isDebug = true;
#end
if (prepForNewRank == false)
{
FunkinSound.playMusic('freakyMenu',
{
overrideExisting: true,
restartTrack: false
});
}
// Add a null entry that represents the RANDOM option
songs.push(null);
@ -2028,10 +2019,7 @@ class FreeplayState extends MusicBeatSubState
public static function build(?params:FreeplayStateParams, ?stickers:StickerSubState):MusicBeatState
{
var result:MainMenuState;
if (params?.fromResults?.playRankAnim ?? false) result = new MainMenuState(true);
else
result = new MainMenuState(false);
result = new MainMenuState(true);
result.openSubState(new FreeplayState(params, stickers));
result.persistentUpdate = false;
result.persistentDraw = true;

View file

@ -64,7 +64,7 @@ class MainMenuState extends MusicBeatState
transIn = FlxTransitionableState.defaultTransIn;
transOut = FlxTransitionableState.defaultTransOut;
if (overrideMusic == false) playMenuMusic();
if (!overrideMusic) playMenuMusic();
// We want the state to always be able to begin with being able to accept inputs and show the anims of the menu items.
persistentUpdate = true;