Fix new save data not being created properly

This commit is contained in:
WorstAquaPlayer 2021-03-21 16:07:59 -03:00
parent 43537afccb
commit 046c4e90a0

View File

@ -66,6 +66,8 @@ class TitleState extends MusicBeatState
trace('NEWGROUNDS LOL'); trace('NEWGROUNDS LOL');
#end #end
FlxG.save.bind('funkin', 'ninjamuffin99');
if (FlxG.save.data.newInput == null) if (FlxG.save.data.newInput == null)
FlxG.save.data.newInput = true; FlxG.save.data.newInput = true;
@ -78,7 +80,11 @@ class TitleState extends MusicBeatState
if (FlxG.save.data.accuracyDisplay == null) if (FlxG.save.data.accuracyDisplay == null)
FlxG.save.data.accuracyDisplay = true; FlxG.save.data.accuracyDisplay = true;
FlxG.save.bind('funkin', 'ninjamuffin99'); if (FlxG.save.data.accuracyDisplay == null)
FlxG.save.data.accuracyDisplay = true;
if (FlxG.save.data.offset == null)
FlxG.save.data.offset = 0;
Highscore.load(); Highscore.load();