diff --git a/source/PlayState.hx b/source/PlayState.hx index 251fa9f..6079db3 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -2171,6 +2171,13 @@ class PlayState extends MusicBeatState if (msTiming >= 0.03 && SONG.song.contains('offsetTest')) { + //Remove Outliers + hits.shift(); + hits.shift(); + hits.shift(); + hits.pop(); + hits.pop(); + hits.pop(); hits.push(msTiming); var total = 0.0; @@ -2178,6 +2185,8 @@ class PlayState extends MusicBeatState for(i in hits) total += i; + + offsetTest = truncateFloat(total / hits.length,2); }