Merge pull request #523 from FunkinCrew/freeplay-no-randoms

sets the selected track as first one in group when swapping sorts on freeplay
This commit is contained in:
Eric 2024-04-29 19:50:48 -04:00 committed by GitHub
commit 9ff8c66a6e

View file

@ -456,6 +456,14 @@ class FreeplayState extends MusicBeatSubState
default:
generateSongList({filterType: REGEXP, filterData: str}, true);
}
// We want to land on the first song of the group, rather than random song when changing letter sorts
// that is, only if there's more than one song in the group!
if (grpCapsules.members.length > 0)
{
curSelected = 1;
changeSelection();
}
};
exitMovers.set([fp, txtCompletion, fnfHighscoreSpr],