This commit is contained in:
Yoshman29
2023-01-22 14:55:59 +01:00
parent 77c06c1bc9
commit db1c8c2606
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
2148
2149
+2 -1
View File
@@ -329,11 +329,12 @@ class FreeplayState extends MusicBeatState
public function changeSelection(change:Int = 0, force:Bool = false)
{
if (change == 0 && !force) return;
var bothEnabled = songs[curSelected].coopAllowed && songs[curSelected].opponentModeAllowed;
var event = event("onChangeSelection", EventManager.get(MenuChangeEvent).recycle(curSelected, FlxMath.wrap(curSelected + change, 0, songs.length-1), change));
if (event.cancelled) return;
curSelected = event.value;
if (event.playMenuSFX) CoolUtil.playMenuSFX(SCROLL, 0.7);
changeDiff(0, true);