File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package funkin.menus;
22
33import funkin .backend .chart .Chart ;
44import funkin .backend .chart .ChartData .ChartMetaData ;
5+ import funkin .backend .system .Conductor ;
56import haxe .io .Path ;
67import openfl .text .TextField ;
78import flixel .text .FlxText ;
@@ -239,7 +240,11 @@ class FreeplayState extends MusicBeatState
239240 autoplayElapsed + = elapsed ;
240241 if (! disableAutoPlay && ! songInstPlaying && (autoplayElapsed > timeUntilAutoplay || FlxG .keys .justPressed .SPACE )) {
241242 if (curPlayingInst != (curPlayingInst = Paths .inst (songs [curSelected ].name , songs [curSelected ].difficulties [curDifficulty ]))) {
242- var huh : Void -> Void = function () FlxG .sound .playMusic (curPlayingInst , 0 );
243+ var huh : Void -> Void = function ()
244+ {
245+ FlxG .sound .playMusic (curPlayingInst , 0 );
246+ Conductor .changeBPM (songs [curSelected ].bpm , songs [curSelected ].beatsPerMeasure , songs [curSelected ].stepsPerBeat );
247+ }
243248 if (! disableAsyncLoading ) Main .execAsync (huh );
244249 else huh ();
245250 }
You can’t perform that action at this time.
0 commit comments