From eebc9a7a5bf2430c8258ca8195f127ff259f63da Mon Sep 17 00:00:00 2001 From: KadeDeveloper Date: Tue, 20 Jul 2021 17:25:58 -0700 Subject: [PATCH] fix mean --- source/PlayState.hx | 12 ++++++------ source/ResultsScreen.hx | 3 ++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/source/PlayState.hx b/source/PlayState.hx index 816083d..9f5518e 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -1611,10 +1611,13 @@ class PlayState extends MusicBeatState data = i; } if (data == -1) + { + trace("couldn't find a keybind with the code " + key); return; - + } if (keys[data]) { + trace("ur already holding " + key); return; } @@ -3390,8 +3393,6 @@ class PlayState extends MusicBeatState var rating:FlxSprite = new FlxSprite(); var score:Float = 350; - trace(totalNotesHit); - if (FlxG.save.data.accuracyMod == 1) totalNotesHit += wife; @@ -3870,9 +3871,9 @@ class PlayState extends MusicBeatState playerStrums.forEach(function(spr:FlxSprite) { - if (pressArray[spr.ID] && spr.animation.curAnim.name != 'confirm') + if (keys[spr.ID] && spr.animation.curAnim.name != 'confirm') spr.animation.play('pressed'); - if (!holdArray[spr.ID]) + if (!keys[spr.ID]) spr.animation.play('static'); if (spr.animation.curAnim.name == 'confirm' && !curStage.startsWith('school')) @@ -4194,7 +4195,6 @@ class PlayState extends MusicBeatState { if (!note.isSustainNote) { - trace(totalNotesHit); popUpScore(note); combo += 1; } diff --git a/source/ResultsScreen.hx b/source/ResultsScreen.hx index 17f417a..bf73bf6 100644 --- a/source/ResultsScreen.hx +++ b/source/ResultsScreen.hx @@ -139,7 +139,8 @@ class ResultsScreen extends FlxSubState var diff = obj[3]; var judge = obj2; - mean += diff; + if (diff != (166 * Math.floor((PlayState.rep.replay.sf / 60) * 1000) / 166)) + mean += diff; if (obj[1] != -1) graph.addToHistory(diff, judge, obj3); }