mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-22 23:57:50 -05:00
results dupe fix
This commit is contained in:
parent
bd7875e86a
commit
7c6c51ea71
1 changed files with 8 additions and 6 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue