From f101b2b1f84189ea289d6e4feb6199472592840a Mon Sep 17 00:00:00 2001 From: veroxzik <43590004+veroxzik@users.noreply.github.com> Date: Sun, 20 Nov 2022 00:19:51 -0500 Subject: [PATCH] WIP: Fix drawing notes near the edge of linear view --- BAKKA-Editor/DrawClasses.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BAKKA-Editor/DrawClasses.cs b/BAKKA-Editor/DrawClasses.cs index 315bc35..d714e63 100644 --- a/BAKKA-Editor/DrawClasses.cs +++ b/BAKKA-Editor/DrawClasses.cs @@ -22,10 +22,10 @@ namespace BAKKA_Editor { StartLane = (position - 15) < 0 ? (position - 15) + 60 : position - 15; Size = size; - EndLane = StartLane + size + 1; + EndLane = (StartLane + size >= 60) ? StartLane + size : StartLane + size + 1; StartLane2 = null; Size2 = null; - if (EndLane >= 60) + if (EndLane > 60) { StartLane2 = StartLane; StartLane = 0;