Skip to content

Commit

Permalink
Exiting from a higher difficulty song will no longer cause all songs …
Browse files Browse the repository at this point in the history
…to load
  • Loading branch information
Lasercar committed Feb 5, 2025
1 parent 6f40aea commit 8c7517a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/funkin/ui/freeplay/FreeplayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ class FreeplayState extends MusicBeatSubState
// Gets all available difficulties for our character, via our available variations
var difficultiesAvailable:Array<String> = song.data.listDifficulties(null, characterVariations);

return difficultiesAvailable.contains(currentDifficulty);
return difficultiesAvailable.contains(rememberedDifficulty);
});

if (onlyIfChanged)
Expand Down Expand Up @@ -1148,6 +1148,9 @@ class FreeplayState extends MusicBeatSubState
// Get this character's transition delay, with a reasonable default.
var transitionDelay:Float = currentCharacter.getFreeplayDJData()?.getCharSelectTransitionDelay() ?? 0.25;

// Some characters don't have higher difficulties for their songs
rememberedDifficulty = Constants.DEFAULT_DIFFICULTY;

new FlxTimer().start(transitionDelay, _ -> {
transitionToCharSelect();
});
Expand Down

0 comments on commit 8c7517a

Please sign in to comment.