This commit is contained in:
2025-10-24 18:50:09 +01:00
parent 488428b1ef
commit ccb809a090
9 changed files with 36 additions and 78 deletions
+1 -1
View File
@@ -164,7 +164,7 @@ isFlyable :: Point2 -> Point2 -> World -> Bool
{-# INLINE isFlyable #-}
isFlyable p1 p2 =
not . (WallNotAutoOpen `S.member`)
. foldMap (getWallPathing . (^. _2))
. foldMap (^. _2 . to getWallPathing)
. wlsHitUnsorted p1 p2
isWalkable :: Point2 -> Point2 -> World -> Bool