Skip to content

Commit d79a0c7

Browse files
committed
random is now -1, fix #14
1 parent f05f57b commit d79a0c7

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/funkin/states/gameplay/PlayState.hx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,11 @@ class PlayState extends FunkinState
165165
super.update(elapsed);
166166

167167
if (controls.justPressed.BACK)
168+
{
169+
conductor.changeBPM(102);
170+
FlxG.sound.playMusic(Paths.content.audio('ui/menu/freakyMenu'));
168171
FlxG.switchState(funkin.states.ui.MenuState.new);
172+
}
169173
}
170174

171175
public function getPlayerSound():FlxSound

src/funkin/states/ui/FreeplayState.hx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class FreeplayState extends FunkinState
1616
/**
1717
* Current Selection.
1818
*/
19-
public var curSelected:Int = 0;
19+
public var curSelected:Int = -1;
2020

2121
/**
2222
* Current Difficulty.
@@ -171,9 +171,9 @@ class FreeplayState extends FunkinState
171171
ostName.shader = sillyStroke;
172172
add(ostName);
173173

174+
generateCapsules();
174175
changeSelection();
175176
changeDifficulty();
176-
generateCapsules();
177177

178178
super.create();
179179

@@ -245,7 +245,7 @@ class FreeplayState extends FunkinState
245245
{
246246
if (controls.justPressed.ACCEPT)
247247
{
248-
if (curSelected == 0)
248+
if (curSelected == -1)
249249
doRandom();
250250
else
251251
enterSong();

0 commit comments

Comments
 (0)