fix hold long builder's left overflow condition

This commit is contained in:
msk
2023-10-14 01:19:55 -07:00
parent 7d166ecc50
commit 82f4685713
3 changed files with 43 additions and 6 deletions
+2 -1
View File
@@ -17,6 +17,7 @@ namespace WacK.Things.TunnelObjects
{
holdData = noteData;
BuildLongThing(holdScroll);
GD.Print($"Building long at {holdData.measureBeat}----------------");
}
// Create longThing in segments.
@@ -88,7 +89,7 @@ namespace WacK.Things.TunnelObjects
};
segment.AddChild(subSegment);
}
if (originFinalPos < 0 || destinationFinalPos < 0)
if (origin.pos < 0 || destPosNearest < 0)
{
GD.Print("overflowed to the left!");
var subSegment = new Polygon2D