Allow for rooms to inherit floor tiling from parents
This commit is contained in:
@@ -23,7 +23,9 @@ type RoomInt = (Room,Int)
|
||||
|
||||
positionRoomsFromTree :: Tree RoomInt -> IO (Maybe [RoomInt])
|
||||
positionRoomsFromTree (Node (r,i) ts) = printHeader
|
||||
>> posRms (map pointsToPoly $ _rmBound r) (r,i) (zipCount ts) Empty
|
||||
>> posRms (map pointsToPoly $ _rmBound r') (r',i) (zipCount ts) Empty
|
||||
where
|
||||
r' = r & rmMID ?~ 0
|
||||
|
||||
posRms :: [ConvexPoly]
|
||||
-> RoomInt
|
||||
|
||||
Reference in New Issue
Block a user