Skip to content

Commit

Permalink
bufix kiancommons
Browse files Browse the repository at this point in the history
  • Loading branch information
kianzarrin committed Apr 29, 2022
1 parent e887e5d commit 9dcfac8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion NodeController/KianCommons
2 changes: 1 addition & 1 deletion NodeController/Manager/NodeData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ public bool IsNodelessJunction() =>
public bool WantsTrafficLight() => NodeType == NodeTypeT.Crossing;
public bool CanModifyOffset() => NodeType == NodeTypeT.Bend || NodeType == NodeTypeT.Stretch || NodeType == NodeTypeT.Custom;
public bool CanModifySharpCorners() {
bool suitable = NodeType == NodeTypeT.Bend || NodeType == NodeTypeT.Custom;
bool suitable = NodeType is NodeTypeT.Bend or NodeTypeT.Custom;
return suitable && AllStraight;
}
public bool CanMassEditNodeCorners() => SegmentCount == 2;
Expand Down

0 comments on commit 9dcfac8

Please sign in to comment.