Cleanup door mounts, noticed space leak when no debug-display paths
This commit is contained in:
@@ -404,8 +404,12 @@ drawPathing :: Config -> World -> Picture
|
||||
drawPathing cfig w = setLayer DebugLayer $ ifoldMap f $ w ^. cWorld . incGraph
|
||||
where
|
||||
inodes = w ^. cWorld . incNode
|
||||
f i = foldMap (g i)
|
||||
g i (j,se) = edgeToPic (screenPolygon cfig (w ^.wCam))
|
||||
--f i = foldMap (g i)
|
||||
--g i (j,se) = edgeToPic (screenPolygon cfig (w ^.wCam))
|
||||
-- (inodes ^?! ix i) (inodes ^?! ix j) (se ^. seObstacles)
|
||||
f :: Int -> IM.IntMap SimpleEdge -> Picture
|
||||
f i = ifoldMap (g i)
|
||||
g i j se = edgeToPic (screenPolygon cfig (w ^.wCam))
|
||||
(inodes ^?! ix i) (inodes ^?! ix j) (se ^. seObstacles)
|
||||
|
||||
edgeToPic :: [Point2] -> Point2 -> Point2 -> S.Set EdgeObstacle -> Picture
|
||||
|
||||
Reference in New Issue
Block a user