Tweak drawing of backpack equipment
This commit is contained in:
@@ -128,14 +128,6 @@ visibleWalls sp ep =
|
||||
. overlapSegWalls sp ep
|
||||
. wlsNearSeg sp ep
|
||||
|
||||
--visibleWalls :: Point2 -> Point2 -> World -> StreamOf (Point2,Wall)
|
||||
--{-# INLINE visibleWalls #-}
|
||||
--visibleWalls sp ep = S.take 1 <=< -- hlint, was using join and fmap
|
||||
-- ( S.span (not . wlIsOpaque . snd)
|
||||
-- . sortStreamOn (dist sp . fst)
|
||||
-- . overlapSegWalls sp ep
|
||||
-- . wlsNearSeg sp ep )
|
||||
|
||||
allVisibleWalls :: World -> [(Point2, Wall)]
|
||||
{-# INLINE allVisibleWalls #-}
|
||||
allVisibleWalls w = concatMap (flip (visibleWalls vPos) w . (+.+ vPos)) $ nRays 20
|
||||
|
||||
Reference in New Issue
Block a user