Cancel set change, nub walls with identical wlLines instead
This commit is contained in:
+1
-1
@@ -66,7 +66,7 @@ makePath = concat . map _rmPath . flatten
|
|||||||
|
|
||||||
wallsFromTree :: Tree Room -> IM.IntMap Wall
|
wallsFromTree :: Tree Room -> IM.IntMap Wall
|
||||||
--wallsFromTree t = createInnerWalls $ divideWalls $ foldr cutWalls IM.empty (concatMap _rmPolys $ flatten t)
|
--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)
|
--wallsFromTree t = divideWalls $ foldr cutWalls IM.empty (concatMap _rmPolys $ flatten t)
|
||||||
|
|
||||||
divideWall :: Wall -> [Wall]
|
divideWall :: Wall -> [Wall]
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ module Dodge.LevelGen
|
|||||||
, cutWalls
|
, cutWalls
|
||||||
, createInnerWalls
|
, createInnerWalls
|
||||||
, checkWalls
|
, checkWalls
|
||||||
|
, nubWalls
|
||||||
)
|
)
|
||||||
where
|
where
|
||||||
-- imports {{{
|
-- imports {{{
|
||||||
|
|||||||
Reference in New Issue
Block a user