1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-28 18:02:46 +00:00

Fix a story mode bug where charts would sometimes not be loaded for the second and third song. (#134)

This commit is contained in:
Eric 2023-08-22 23:18:37 -04:00 committed by GitHub
parent 235969e9a7
commit 74dac9d830

View file

@ -2561,6 +2561,9 @@ class PlayState extends MusicBeatSubState
FlxG.sound.play(Paths.sound('Lights_Shut_off'), function() {
// no camFollow so it centers on horror tree
var targetSong:Song = SongDataParser.fetchSong(targetSongId);
// Load and cache the song's charts.
// TODO: Do this in the loading state.
targetSong.cacheCharts(true);
var nextPlayState:PlayState = new PlayState(
{
@ -2575,6 +2578,9 @@ class PlayState extends MusicBeatSubState
else
{
var targetSong:Song = SongDataParser.fetchSong(targetSongId);
// Load and cache the song's charts.
// TODO: Do this in the loading state.
targetSong.cacheCharts(true);
var nextPlayState:PlayState = new PlayState(
{
targetSong: targetSong,