Fix tile rendering
This commit is contained in:
@@ -9,7 +9,7 @@ import Control.Lens
|
||||
addTile :: Float -> Room -> Room
|
||||
addTile z r
|
||||
| not (null (_rmFloor r)) || null rp = r
|
||||
| otherwise = r & rmFloor .~ [oTile poly z]
|
||||
| otherwise = r & rmFloor .~ [makeTileFromPoly poly z]
|
||||
where
|
||||
rp = _rmPolys r
|
||||
poly = convexHull $ concat rp
|
||||
poly = orderPolygon . convexHull $ concat rp
|
||||
|
||||
Reference in New Issue
Block a user