Stop inanimate objects from opening walls
This commit is contained in:
@@ -150,6 +150,7 @@ circOnLine' !p1 !p2 !c !rad = isJustTrue (fmap (\p -> magV (p -.- c) < rad) y)
|
||||
isJustTrue (Just True) = True
|
||||
isJustTrue _ = False
|
||||
|
||||
-- this should probably be circOnSeg
|
||||
circOnLine :: Point2 -> Point2 -> Point2 -> Float -> Bool
|
||||
circOnLine !p1 !p2 !c !rad = magV (p1 -.- c) <= rad || magV (p2 -.- c) <= rad
|
||||
|| isJustTrue (fmap (\p -> magV (p -.- c) < rad) y)
|
||||
|
||||
Reference in New Issue
Block a user