Skip to content

Commit ce98ad0

Browse files
committed
aaghh
1 parent 037f564 commit ce98ad0

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

source/funkin/menus/FreeplayState.hx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,6 @@ class FreeplayState extends MusicBeatState
123123
}
124124
}
125125

126-
updateCurDifficulties();
127-
updateCurSong();
128-
129126
if (curSong != null) {
130127
for(k=>diff in curDifficulties) {
131128
if (diff == Options.freeplayLastDifficulty) {
@@ -134,6 +131,9 @@ class FreeplayState extends MusicBeatState
134131
}
135132
}
136133

134+
updateCurDifficulties();
135+
updateCurSong();
136+
137137
DiscordUtil.call("onMenuLoaded", ["Freeplay"]);
138138

139139
super.create();
@@ -182,12 +182,11 @@ class FreeplayState extends MusicBeatState
182182

183183
coopText = new FlxText(diffText.x, diffText.y + diffText.height + 2, 0, "", 24);
184184
coopText.font = scoreText.font;
185-
coopText.visible = curSong.coopAllowed || curSong.opponentModeAllowed;
186185
add(coopText);
187186

188187
add(scoreText);
189188

190-
changeDiff(0, true);
189+
changeSelection(0, true);
191190
changeCoopMode(0, true);
192191

193192
interpColor = new FlxInterpolateColor(bg.color);
@@ -382,7 +381,7 @@ class FreeplayState extends MusicBeatState
382381
updateScore();
383382

384383
#if PRELOAD_ALL
385-
if (curSong != prevSong || force) {
384+
if (curSong != prevSong) {
386385
autoplayElapsed = 0;
387386
songInstPlaying = false;
388387
}
@@ -470,6 +469,11 @@ class FreeplayState extends MusicBeatState
470469

471470
changeDiff(0, true);
472471

472+
#if PRELOAD_ALL
473+
autoplayElapsed = 0;
474+
songInstPlaying = false;
475+
#end
476+
473477
coopText.visible = curSong.coopAllowed || curSong.opponentModeAllowed;
474478
}
475479

0 commit comments

Comments
 (0)