Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonie-kramer committed Nov 22, 2023
1 parent 0b914f3 commit fb9810b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ public partial class WallCandidate

public string AddId { get; set; }

public WallCandidate(Line @line, string @type, double height, Transform levelTransform, IList<SpaceBoundary> @spaceAdjacencies = null, System.Guid @id = default, string @name = null)
: this(@line, @type, @spaceAdjacencies, id, name)
public WallCandidate(Line line, string type, double height, Transform levelTransform, IList<SpaceBoundary> spaceAdjacencies = null, System.Guid id = default, string name = null)
: this(line, type, spaceAdjacencies, id, name)
{
Height = height;
LevelTransform = levelTransform;
Expand Down
4 changes: 1 addition & 3 deletions LayoutFunctions/LayoutFunctionCommon/WallGeneration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,7 @@ public static List<RoomEdge> SplitOverlappingWallCandidates(IEnumerable<RoomEdge
var end = (line.End - dominantLineForGroup.Line.Start).Dot(domLineDir);
if (start > end)
{
var oldStart = start;
start = end;
end = oldStart;
(end, start) = (start, end);
}

var typePriorityStrings = linePair.Type.Split('-');
Expand Down

0 comments on commit fb9810b

Please sign in to comment.