Cancel set change, nub walls with identical wlLines instead

This commit is contained in:
jgk
2021-03-04 19:09:37 +01:00
parent 6c1b92f8c3
commit f9777deedf
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ makePath = concat . map _rmPath . flatten
wallsFromTree :: Tree Room -> IM.IntMap Wall
--wallsFromTree t = createInnerWalls $ divideWalls $ foldr cutWalls IM.empty (concatMap _rmPolys $ flatten t)
wallsFromTree t = checkWalls $ divideWalls $ foldr cutWalls IM.empty (concatMap _rmPolys $ flatten t)
wallsFromTree t = checkWalls $ nubWalls $ divideWalls $ foldr cutWalls IM.empty (concatMap _rmPolys $ flatten t)
--wallsFromTree t = divideWalls $ foldr cutWalls IM.empty (concatMap _rmPolys $ flatten t)
divideWall :: Wall -> [Wall]
+1
View File
@@ -6,6 +6,7 @@ module Dodge.LevelGen
, cutWalls
, createInnerWalls
, checkWalls
, nubWalls
)
where
-- imports {{{