fix freeplay locking thing
This commit is contained in:
parent
0bb2c88c7e
commit
2cd24cadc9
@ -302,6 +302,10 @@ class FreeplayState extends MusicBeatState
|
|||||||
|
|
||||||
function changeDiff(change:Int = 0)
|
function changeDiff(change:Int = 0)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if (songs[curSelected += change] == null)
|
||||||
|
return;
|
||||||
|
|
||||||
curDifficulty += change;
|
curDifficulty += change;
|
||||||
|
|
||||||
if (curDifficulty < 0)
|
if (curDifficulty < 0)
|
||||||
@ -333,6 +337,9 @@ class FreeplayState extends MusicBeatState
|
|||||||
// NGio.logEvent('Fresh');
|
// NGio.logEvent('Fresh');
|
||||||
FlxG.sound.play(Paths.sound('scrollMenu'), 0.4);
|
FlxG.sound.play(Paths.sound('scrollMenu'), 0.4);
|
||||||
|
|
||||||
|
if (songs[curSelected += change] == null)
|
||||||
|
return;
|
||||||
|
|
||||||
curSelected += change;
|
curSelected += change;
|
||||||
|
|
||||||
if (curSelected < 0)
|
if (curSelected < 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user