Skip to content

Commit

Permalink
forgot these
Browse files Browse the repository at this point in the history
  • Loading branch information
haya3218 committed Sep 19, 2021
1 parent ebee811 commit a7a6d3a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion source/gameFolder/meta/data/Section.hx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ typedef SwagSection =
var lengthInSteps:Int;
var typeOfSection:Int;
var mustHitSection:Bool;
var bpm:Int;
var bpm:Float;
var changeBPM:Bool;
var altAnim:Bool;
}
Expand Down
4 changes: 2 additions & 2 deletions source/gameFolder/meta/data/Song.hx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ typedef SwagSong =
{
var song:String;
var notes:Array<SwagSection>;
var bpm:Int;
var bpm:Float;
var needsVoices:Bool;
var speed:Float;

Expand All @@ -27,7 +27,7 @@ class Song
{
public var song:String;
public var notes:Array<SwagSection>;
public var bpm:Int;
public var bpm:Float;
public var needsVoices:Bool = true;
public var speed:Float = 1;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class OriginalChartingState extends MusicBeatState
**/
var curSelectedNote:Array<Dynamic>;

var tempBpm:Int = 0;
var tempBpm:Float = 0;

var vocals:FlxSound;

Expand Down Expand Up @@ -473,7 +473,7 @@ class OriginalChartingState extends MusicBeatState
}*/
function sectionStartTime():Float
{
var daBPM:Int = _song.bpm;
var daBPM:Float = _song.bpm;
var daPos:Float = 0;
for (i in 0...curSection)
{
Expand Down Expand Up @@ -848,7 +848,7 @@ class OriginalChartingState extends MusicBeatState
else
{
// get last bpm
var daBPM:Int = _song.bpm;
var daBPM:Float = _song.bpm;
for (i in 0...curSection)
if (_song.notes[i].changeBPM)
daBPM = _song.notes[i].bpm;
Expand Down

0 comments on commit a7a6d3a

Please sign in to comment.