Fix reversed impulse pathfinding bug

This commit is contained in:
2025-10-16 12:07:10 +01:00
parent df85624a49
commit 3bfe6f5dfd
9 changed files with 169 additions and 166 deletions
+1 -1
View File
@@ -209,7 +209,7 @@ drawPathBetween u = concat $ do
let nodepos = (`getNodePos` w)
nodelist = makePathBetween sp ep w
return . setLayer DebugLayer $
color rose (foldMap (arrowPath . mapMaybe nodepos) nodelist)
color rose (foldMap (arrowPath . mapMaybe nodepos) nodelist)
<> drawCrossCol green sp
<> drawCrossCol cyan ep
<> foldMap (color green . arrow sp) (nodepos =<< walkableNodeNear w sp)