Skip to content

Commit

Permalink
Merge pull request #1037 from CitiesSkylinesMods/fix/rmb-lane-connect…
Browse files Browse the repository at this point in the history
…or-hotfix

Fix RMB lane connector
  • Loading branch information
krzychu124 committed Nov 21, 2020
2 parents e8675d4 + 5875d42 commit a3cd8fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion TLM/TLM/UI/SubTools/LaneConnectorTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -935,6 +935,8 @@ public LaneConnectorTool(TrafficManagerTool mainTool)
return;
}

ushort previouslySelectedNodeId = SelectedNodeId;

switch (GetSelectionMode()) {
// also: case MarkerSelectionMode.None:
default: {
Expand Down Expand Up @@ -967,7 +969,7 @@ public LaneConnectorTool(TrafficManagerTool mainTool)
}
}

if (GetSelectionMode() == SelectionMode.None) {
if (GetSelectionMode() == SelectionMode.None && previouslySelectedNodeId == 0) {
MainTool.SetToolMode(ToolMode.None);
}
}
Expand Down

0 comments on commit a3cd8fa

Please sign in to comment.