Move main to allow for new executables
This commit is contained in:
+4
-4
@@ -420,10 +420,10 @@ nearestCrInFront p dir x w
|
||||
$ IM.filter (\cr -> errorPointInPolygon 2 (_crPos cr) rec) $ _creatures w
|
||||
where
|
||||
rec = [p, pR, pR1, pL1, pL ]
|
||||
pR = p +.+ rotateV (dir - pi*(3/8)) (V2 (x/2) (0))
|
||||
pL = p +.+ rotateV (dir + pi*(3/8)) (V2 (x/2) (0))
|
||||
pR1 = pR +.+ rotateV dir (V2 (x/2) (0))
|
||||
pL1 = pL +.+ rotateV dir (V2 (x/2) (0))
|
||||
pR = p +.+ rotateV (dir - pi*(3/8)) (V2 (x/2) 0)
|
||||
pL = p +.+ rotateV (dir + pi*(3/8)) (V2 (x/2) 0)
|
||||
pR1 = pR +.+ rotateV dir (V2 (x/2) 0)
|
||||
pL1 = pL +.+ rotateV dir (V2 (x/2) 0)
|
||||
{- | Test whether a creature is in a polygon. -}
|
||||
crInPolygon :: Creature -> [Point2] -> Bool
|
||||
crInPolygon cr = errorPointInPolygon 3 (_crPos cr)
|
||||
|
||||
Reference in New Issue
Block a user