results dupe fix

This commit is contained in:
Cameron Taylor 2024-06-01 22:36:47 -04:00
parent bd7875e86a
commit 7c6c51ea71

View file

@ -712,12 +712,6 @@ class FreeplayState extends MusicBeatSubState
// If curSelected is 0, the result will be null and fall back to the rememberedSongId. // If curSelected is 0, the result will be null and fall back to the rememberedSongId.
rememberedSongId = grpCapsules.members[curSelected]?.songData?.songId ?? rememberedSongId; rememberedSongId = grpCapsules.members[curSelected]?.songData?.songId ?? rememberedSongId;
if (fromResultsParams != null)
{
rememberedSongId = fromResultsParams.songId;
rememberedDifficulty = fromResultsParams.difficultyId;
}
for (cap in grpCapsules.members) for (cap in grpCapsules.members)
{ {
cap.songText.resetText(); cap.songText.resetText();
@ -828,6 +822,14 @@ class FreeplayState extends MusicBeatSubState
{ {
busy = true; busy = true;
if (fromResults != null)
{
rememberedSongId = fromResults.songId;
rememberedDifficulty = fromResults.difficultyId;
changeSelection();
changeDiff();
}
dj.fistPump(); dj.fistPump();
// rankCamera.fade(FlxColor.BLACK, 0.5, true); // rankCamera.fade(FlxColor.BLACK, 0.5, true);
rankCamera.fade(0xFF000000, 0.5, true, null, true); rankCamera.fade(0xFF000000, 0.5, true, null, true);