Skip to content

Commit b3bad4d

Browse files
committed
Update OsuFreeplayState.hx
1 parent bde783e commit b3bad4d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

source/states/freeplay/OsuFreeplayState.hx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class OsuFreeplayState extends MusicBeatState
4444
var background:FlxSprite;
4545

4646
private var songBoxGrp:FlxTypedGroup<SongBox>;
47+
var songBoxGrpOG:FlxTypedGroup<SongBox>;
4748
private var iconGrp:FlxTypedGroup<HealthIcon>;
4849
private var textGrp:FlxTypedGroup<FlxText>;
4950

@@ -100,6 +101,7 @@ class OsuFreeplayState extends MusicBeatState
100101
add(staleBg);
101102

102103
songBoxGrp = new FlxTypedGroup<SongBox>();
104+
songBoxGrpOG = new FlxTypedGroup<SongBox>();
103105
add(songBoxGrp);
104106

105107
textGrp = new FlxTypedGroup<FlxText>();
@@ -756,6 +758,7 @@ class OsuFreeplayState extends MusicBeatState
756758
}
757759
songBox.ID = i;
758760
this.songBoxGrp.add(songBox);
761+
this.songBoxGrpOG.add(songBox);
759762

760763
var isLock:Bool = APEntryState.inArchipelagoMode && CategoryState.loadWeekForce == "all" && isMissing && !FreeplayManager.unplayedList.contains(songName);
761764
var icon:HealthIcon = new HealthIcon(isLock ? "lock" : FreeplayManager.songList[i].songCharacter, false);
@@ -831,6 +834,7 @@ class OsuFreeplayState extends MusicBeatState
831834
songBox.setColorTransform(-1, -1, -1, 1, FreeplayManager.songList[i].color[0][0], FreeplayManager.songList[i].color[0][1], FreeplayManager.songList[i].color[0][2], 1);
832835
}
833836
songBox.ID = i + trueInt;
837+
songBox.songID = i;
834838
this.songBoxGrp.add(songBox);
835839

836840
var isLock:Bool = APEntryState.inArchipelagoMode && CategoryState.loadWeekForce == "all" && isMissing && !FreeplayManager.unplayedList.contains(songName);
@@ -855,8 +859,7 @@ class OsuFreeplayState extends MusicBeatState
855859
var week:WeekData = WeekData.weeksLoaded.get(WeekData.weeksList[FreeplayManager.songList[i].week]);
856860
Difficulty.loadFromWeek(week);
857861

858-
if (FreeplayManager.songList[i].songName == FreeplayManager.songList[songBoxGrp.members[curSelected].songID].songName)
859-
trace(songName);
862+
if (FreeplayManager.songList[i].songName == FreeplayManager.songList[songBoxGrpOG.members[curSelected].songID].songName) {
860863
trueInt = i+1;
861864
for (j in 0...Difficulty.list.length)
862865
{

0 commit comments

Comments
 (0)