File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -8,4 +8,4 @@ latest/windows/haxe/
8
8
.haxelib /
9
9
pages /
10
10
docs /doc.xml
11
- mods /Baldi's Basics in Funkin' /
11
+ mods /
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ class FNFLegacyParser {
109
109
});
110
110
}
111
111
112
- if (section .sectionBeats != beatsPerMeasure ) {
112
+ if (section .sectionBeats != null && section . sectionBeats != beatsPerMeasure ) {
113
113
beatsPerMeasure = section .sectionBeats != null ? section .sectionBeats : data .beatsPerMeasure .getDefault (4 );
114
114
115
115
result .events .push ({
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class BPMChangeEvent {
11
11
public var songTime : Float ;
12
12
public var bpm : Float ;
13
13
public var beatsPerMeasure : Float ;
14
- public var stepsPerBeat : Float ;
14
+ public var stepsPerBeat : Int ;
15
15
}
16
16
17
17
final class Conductor
@@ -48,7 +48,7 @@ final class Conductor
48
48
/**
49
49
* Number of steps per beat (bottom number in time signature). Defaults to 4.
50
50
*/
51
- public static var stepsPerBeat : Float = 4 ;
51
+ public static var stepsPerBeat : Int = 4 ;
52
52
53
53
54
54
/**
@@ -137,7 +137,7 @@ final class Conductor
137
137
138
138
var curBPM : Float = song .meta .bpm ;
139
139
var curBeatsPerMeasure : Float = song .meta .beatsPerMeasure .getDefault (4 );
140
- var curStepsPerBeat : Float = song .meta .stepsPerBeat .getDefault (4 );
140
+ var curStepsPerBeat : Int = song .meta .stepsPerBeat .getDefault (4 );
141
141
var songTime : Float = 0 ;
142
142
var stepTime : Float = 0 ;
143
143
@@ -305,7 +305,7 @@ final class Conductor
305
305
}
306
306
}
307
307
308
- public static function changeBPM (newBpm : Float , newBeatsPerMeasure : Float = 4 , newStepsPerBeat : Float = 4 )
308
+ public static function changeBPM (newBpm : Float , newBeatsPerMeasure : Float = 4 , newStepsPerBeat : Int = 4 )
309
309
{
310
310
var timesignChange = (beatsPerMeasure != newBeatsPerMeasure || stepsPerBeat != newStepsPerBeat );
311
311
var bpmChange = (bpm != newBpm );
You can’t perform that action at this time.
0 commit comments