Cleanup
This commit is contained in:
@@ -29,7 +29,7 @@ thingsHit
|
||||
-> Stream (Of (Point2, Either Creature Wall)) Identity ()
|
||||
thingsHit sp ep w
|
||||
| sp == ep = S.each []
|
||||
| otherwise = fmap (const ()) $ S.mergeOn (dist sp . fst) crs wls
|
||||
| otherwise = void $ S.mergeOn (dist sp . fst) crs wls
|
||||
where
|
||||
crs :: Stream (Of (Point2, Either Creature Wall)) Identity ()
|
||||
crs = sortStreamOn (dist sp . fst)
|
||||
|
||||
Reference in New Issue
Block a user