@@ -1022,7 +1022,7 @@ function Editor:GetConnectionSegmentAt(x, y)
10221022 table.insert (points , {x2 , y2 })
10231023
10241024 for i = 1 , # points - 1 do
1025- local px , py , t = self :ClosestPointOnSegment (gx , gy , points [i ][1 ], points [i ][2 ], points [i + 1 ][1 ], points [i + 1 ][2 ])
1025+ local px , py , _ = self :ClosestPointOnSegment (gx , gy , points [i ][1 ], points [i ][2 ], points [i + 1 ][1 ], points [i + 1 ][2 ])
10261026 local dx = gx - px
10271027 local dy = gy - py
10281028 local dist = math.sqrt (dx * dx + dy * dy )
@@ -1398,7 +1398,6 @@ function Editor:PaintMinimap()
13981398
13991399 for inputNum , connectedTo in pairs (node .connections ) do
14001400 local outputNodeId = connectedTo [1 ]
1401- local outputNum = connectedTo [2 ]
14021401 local outputNode = self .Nodes [outputNodeId ]
14031402
14041403 if outputNode then
@@ -1750,7 +1749,7 @@ function Editor:PaintOverlay()
17501749
17511750 if self .AlignToGrid then
17521751 surface .SetTextColor (100 , 180 , 255 )
1753- local tx , ty = surface .GetTextSize (" Align to grid" )
1752+ local tx , _ = surface .GetTextSize (" Align to grid" )
17541753 surface .SetTextPos (xOffset - tx , y )
17551754 surface .DrawText (" Align to grid" )
17561755 y = y + 20
@@ -1764,7 +1763,7 @@ function Editor:PaintOverlay()
17641763 else
17651764 text = text .. " nodes selected"
17661765 end
1767- local tx , ty = surface .GetTextSize (text )
1766+ local tx , _ = surface .GetTextSize (text )
17681767 surface .SetTextPos (xOffset - tx , y )
17691768 surface .DrawText (text )
17701769 y = y + 20
@@ -1779,7 +1778,7 @@ function Editor:PaintOverlay()
17791778 else
17801779 text = text .. " waypoints selected"
17811780 end
1782- local tx , ty = surface .GetTextSize (text )
1781+ local tx , _ = surface .GetTextSize (text )
17831782 surface .SetTextPos (xOffset - tx , y )
17841783 surface .DrawText (text )
17851784 y = y + 20
@@ -1794,7 +1793,7 @@ function Editor:PaintOverlay()
17941793 else
17951794 text = text .. " nodes in paste buffer"
17961795 end
1797- local tx , ty = surface .GetTextSize (text )
1796+ local tx , _ = surface .GetTextSize (text )
17981797 surface .SetTextPos (xOffset - tx , y )
17991798 surface .DrawText (text )
18001799 y = y + 20
@@ -1804,7 +1803,7 @@ function Editor:PaintOverlay()
18041803 if # self .UndoStack > 0 or # self .RedoStack > 0 then
18051804 surface .SetTextColor (180 , 180 , 180 )
18061805 local text = " Undo: " .. # self .UndoStack .. " | Redo: " .. # self .RedoStack
1807- local tx , ty = surface .GetTextSize (text )
1806+ local tx , _ = surface .GetTextSize (text )
18081807 surface .SetTextPos (xOffset - tx , y )
18091808 surface .DrawText (text )
18101809 y = y + 20
0 commit comments