(8b8693dbf) Allow editing selected wires in wiring mode, made connection panels a little less transparent. Closes #1329

This commit is contained in:
Joonas Rikkonen
2019-03-26 17:34:35 +02:00
parent d60696f895
commit 6fd4d14497
3 changed files with 5 additions and 15 deletions
@@ -178,9 +178,7 @@ namespace Barotrauma.Items.Components
{
if (PlayerInput.LeftButtonClicked())
{
float temp = 0.0f;
int closestSectionIndex = selectedWire.GetClosestSectionIndex(mousePos, sectionSelectDist, out temp);
int closestSectionIndex = selectedWire.GetClosestSectionIndex(mousePos, sectionSelectDist, out _);
if (closestSectionIndex > -1)
{
selectedWire.nodes.Insert(closestSectionIndex + 1, mousePos);