Can pick up items by dragging
This commit is contained in:
@@ -206,10 +206,11 @@ hasLOS p1 p2 =
|
||||
|
||||
hasButtonLOS :: Point2 -> Point2 -> World -> Bool
|
||||
{-# INLINE hasButtonLOS #-}
|
||||
hasButtonLOS p1 p2 =
|
||||
not
|
||||
. collidePointTestFilter (not . _wlTouchThrough) p1 p2
|
||||
. wlsNearSeg p1 p2
|
||||
hasButtonLOS _ _ = const True
|
||||
--hasButtonLOS p1 p2 =
|
||||
-- not
|
||||
-- . collidePointTestFilter (not . _wlTouchThrough) p1 p2
|
||||
-- . wlsNearSeg p1 p2
|
||||
|
||||
hasLOSIndirect :: Point2 -> Point2 -> World -> Bool
|
||||
{-# INLINE hasLOSIndirect #-}
|
||||
|
||||
Reference in New Issue
Block a user