Skip to content

Commit

Permalink
Clockwise version
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroHG committed Sep 14, 2022
1 parent 8ef9879 commit 742108b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion procthor/generation/generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def get_xz_poly_map(boundary_groups, room_ids: Set[int]) -> Dict[int, XZPoly]:
for (x0, z0), (x1, z1) in room_wall_loop:
dist = x0 * z1 - x1 * z0
edge_sum += dist
if edge_sum > 0:
if edge_sum < 0:
room_wall_loop = [(p1, p0) for p0, p1 in reversed(room_wall_loop)]

out[room_id] = room_wall_loop
Expand Down

0 comments on commit 742108b

Please sign in to comment.