From 49ae5036e653e3554add62c240b5183168ff269f Mon Sep 17 00:00:00 2001 From: KadeDeveloper Date: Tue, 10 Aug 2021 23:02:02 -0700 Subject: [PATCH] also fix black box thing --- source/ChartingState.hx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/ChartingState.hx b/source/ChartingState.hx index d3a1f4d..4ee4b3e 100644 --- a/source/ChartingState.hx +++ b/source/ChartingState.hx @@ -1736,7 +1736,8 @@ class ChartingState extends MusicBeatState if (waitingForRelease) { trace(selectBox.width + " | " + selectBox.height); - selectBox.makeGraphic(Math.floor(FlxG.mouse.x - selectBox.x),Math.floor(FlxG.mouse.y - selectBox.y),FlxColor.fromRGB(173, 216, 230)); + if (FlxG.mouse.x - selectBox.x > 0 && FlxG.mouse.y - selectBox.y > 0) + selectBox.makeGraphic(Math.floor(FlxG.mouse.x - selectBox.x),Math.floor(FlxG.mouse.y - selectBox.y),FlxColor.fromRGB(173, 216, 230)); } } }