Skip to content

Commit 58def87

Browse files
authored
Revert "Improves A* pathfinding with One Weird Trick" (#13310)
1 parent 0ee2d9f commit 58def87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/defines/procs/AStar.dm

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ proc/AStar(start,end,adjacent,dist,maxnodes,maxnodedepth = 30,mintargetdist,minn
215215
else //is already in open list, check if it's a better way from the current turf
216216
if(newg < T.PNode.g)
217217
T.PNode.prevNode = cur
218-
T.PNode.g = (newg * L.len / 9)
218+
T.PNode.g = newg
219219
T.PNode.calc_f()
220220
open.ReSort(T.PNode)//reorder the changed element in the list
221221

0 commit comments

Comments
 (0)