Skip to content

Commit

Permalink
DiffFix
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonGamerPS1 committed May 20, 2024
1 parent 633b2e8 commit 796e61b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions source/FreeplayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,7 @@ class FreeplayState extends MusicBeatState
PlayState.isStoryMode = false;
PlayState.storyDifficulty = curDifficulty;
FlxG.switchState(new PlayState());
if (FlxG.sound.music != null)
FlxG.sound.music.stop();

}
}

Expand Down
1 change: 1 addition & 0 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ class PlayState extends MusicBeatState
camGame = new FlxCamera();
camHUD = new FlxCamera();
camHUD.bgColor.alpha = 0;


FlxG.cameras.reset(camGame);
FlxG.cameras.add(camHUD);
Expand Down
3 changes: 1 addition & 2 deletions source/StoryMenuState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,7 @@ class StoryMenuState extends MusicBeatState
PlayState.campaignScore = 0;
new FlxTimer().start(1, function(tmr:FlxTimer)
{
if (FlxG.sound.music != null)
FlxG.sound.music.stop();

FlxG.switchState(new PlayState());
});
}
Expand Down

0 comments on commit 796e61b

Please sign in to comment.