Node() is not a list anymore
This commit is contained in:
parent
0b8a477184
commit
e16c21b3bb
@ -235,7 +235,7 @@ class Grid:
|
||||
targetDist = neighbour.getDistanceTo(pos_to, DistanceAlgorithm.MANHATTAN, includeDiagonal)
|
||||
neighbourNode = Node(
|
||||
targetDist + neighbourDist + currentNode.h_cost,
|
||||
currentNode[2] + neighbourDist,
|
||||
currentNode.h_cost + neighbourDist,
|
||||
currentCoord
|
||||
)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user