Skip to content

Commit 62f4819

Browse files
committed
Use previous difficulty if possible
1 parent 6a802c2 commit 62f4819

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

source/funkin/menus/FreeplayState.hx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,14 @@ class FreeplayState extends MusicBeatState
461461
curSelected = event.value;
462462
if (event.playMenuSFX) CoolUtil.playMenuSFX(SCROLL, 0.7);
463463

464+
var prevDiff = curDifficulties[curDifficulty], prevVariant = curDiffMetaKeys[curDifficulty];
464465
updateCurDifficulties();
466+
467+
for (i => diff in curDifficulties) if (diff == prevDiff && curDiffMetaKeys[i] == prevVariant) {
468+
curDifficulty = i;
469+
break;
470+
}
471+
465472
changeDiff(0, true);
466473

467474
#if PRELOAD_ALL

0 commit comments

Comments
 (0)