re add start section and result screen clean

This commit is contained in:
KadeDeveloper 2021-08-04 15:23:47 -07:00
parent 78b7faf83a
commit fa77122877
2 changed files with 15 additions and 0 deletions

View File

@ -1256,7 +1256,17 @@ class ChartingState extends MusicBeatState
check_altAnim.checked = section.altAnim;
});
var startSection:FlxButton = new FlxButton(10, 85, "Play Here", function() {
PlayState.SONG = _song;
FlxG.sound.music.stop();
if (!PlayState.isSM)
vocals.stop();
PlayState.startTime = lastUpdatedSection.startTime;
LoadingState.loadAndSwitchState(new PlayState());
});
tab_group_section.add(refresh);
tab_group_section.add(startSection);
tab_group_section.add(stepperCopy);
tab_group_section.add(stepperCopyLabel);
tab_group_section.add(check_mustHitSection);

View File

@ -145,6 +145,11 @@ class ResultsScreen extends FlxSubState
graph.addToHistory(diff, judge, obj3);
}
if (sicks == Math.POSITIVE_INFINITY || sicks == Math.NaN)
sicks = 0;
if (goods == Math.POSITIVE_INFINITY || goods == Math.NaN)
goods = 0;
graph.update();
mean = HelperFunctions.truncateFloat(mean / PlayState.rep.replay.songNotes.length,2);