Fixed a bug where assets from other weeks wouldn't load

This commit is contained in:
EliteMasterEric 2023-06-01 16:00:15 -04:00
parent 09318c258b
commit fd5c546005

View file

@ -112,8 +112,8 @@ class StoryMenuState extends MusicBeatState
{
FlxG.sound.playMusic(Paths.music('freakyMenu'));
FlxG.sound.music.fadeIn(4, 0, 0.7);
Conductor.forceBPM(Constants.FREAKY_MENU_BPM);
}
Conductor.forceBPM(Constants.FREAKY_MENU_BPM);
if (stickerSubState != null)
{
@ -480,6 +480,8 @@ class StoryMenuState extends MusicBeatState
PlayState.currentSong = SongLoad.loadFromJson(PlayState.storyPlaylist[0].toLowerCase(), PlayState.storyPlaylist[0].toLowerCase());
PlayState.currentSong_NEW = SongDataParser.fetchSong(PlayState.storyPlaylist[0].toLowerCase());
Paths.setCurrentLevel(currentLevel.id);
// TODO: Fix this.
PlayState.storyWeek = 0;
PlayState.campaignScore = 0;