refine pathfinding
This commit is contained in:
parent
72c8adb4f5
commit
1c9076c838
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ naviGraph imgmat (V2 r c) =
|
|||
(\acc (or, oc) ->
|
||||
if null (fromMaybe [] $
|
||||
imgObstacle <$> M.safeGet (r + or) (c + oc) imgmat)
|
||||
&& any null
|
||||
&& all null
|
||||
(map
|
||||
(\(oor, ooc) -> fromMaybe [] $
|
||||
imgObstacle <$> M.safeGet (r + oor) (c + ooc) imgmat)
|
||||
|
|
Loading…
Reference in a new issue