fixes the chart editor

This commit is contained in:
Kade M 2021-06-20 18:03:37 -07:00
parent a717bd1de9
commit fcc6ae72a5
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ class Note extends FlxSprite
x += 50; x += 50;
// MAKE SURE ITS DEFINITELY OFF SCREEN? // MAKE SURE ITS DEFINITELY OFF SCREEN?
y -= 2000; y -= 2000;
this.strumTime = Math.round(strumTime); this.strumTime = strumTime;
if (this.strumTime < 0 ) if (this.strumTime < 0 )
this.strumTime = 0; this.strumTime = 0;

View File

@ -1475,7 +1475,7 @@ class PlayState extends MusicBeatState
for (songNotes in section.sectionNotes) for (songNotes in section.sectionNotes)
{ {
var daStrumTime:Float = songNotes[0] + FlxG.save.data.offset + songOffset; var daStrumTime:Float = Math.round(songNotes[0]) + FlxG.save.data.offset + songOffset;
if (daStrumTime < 0) if (daStrumTime < 0)
daStrumTime = 0; daStrumTime = 0;
var daNoteData:Int = Std.int(songNotes[1] % 4); var daNoteData:Int = Std.int(songNotes[1] % 4);