From 952a4464daa0e8aa1fa4067aa5153e97c2cd2b38 Mon Sep 17 00:00:00 2001 From: KadeDeveloper Date: Mon, 26 Jul 2021 14:04:33 -0700 Subject: [PATCH] editor optimization --- source/ChartingState.hx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/ChartingState.hx b/source/ChartingState.hx index 13af2f6..701d1fc 100644 --- a/source/ChartingState.hx +++ b/source/ChartingState.hx @@ -1492,8 +1492,8 @@ class ChartingState extends MusicBeatState for(i in sectionRenderes) { - var diff = getYfromStrum(i.y) - Conductor.songPosition; - if (diff < 10000 && diff >= -40000) + var diff = i.y - strumLine.y; + if (diff < 4000 && diff >= -4000) { i.active = true; i.visible = true; @@ -1507,8 +1507,8 @@ class ChartingState extends MusicBeatState for(i in curRenderedNotes) { - var diff = i.strumTime - Conductor.songPosition; - if (diff < 10000 && diff >= -40000) + var diff = i.y - strumLine.y; + if (diff < 4000 && diff >= -4000) { i.active = true; i.visible = true;