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) ->
|
(\acc (or, oc) ->
|
||||||
if null (fromMaybe [] $
|
if null (fromMaybe [] $
|
||||||
imgObstacle <$> M.safeGet (r + or) (c + oc) imgmat)
|
imgObstacle <$> M.safeGet (r + or) (c + oc) imgmat)
|
||||||
&& any null
|
&& all null
|
||||||
(map
|
(map
|
||||||
(\(oor, ooc) -> fromMaybe [] $
|
(\(oor, ooc) -> fromMaybe [] $
|
||||||
imgObstacle <$> M.safeGet (r + oor) (c + ooc) imgmat)
|
imgObstacle <$> M.safeGet (r + oor) (c + ooc) imgmat)
|
||||||
|
|
Loading…
Add table
Reference in a new issue