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)
|
targetDist = neighbour.getDistanceTo(pos_to, DistanceAlgorithm.MANHATTAN, includeDiagonal)
|
||||||
neighbourNode = Node(
|
neighbourNode = Node(
|
||||||
targetDist + neighbourDist + currentNode.h_cost,
|
targetDist + neighbourDist + currentNode.h_cost,
|
||||||
currentNode[2] + neighbourDist,
|
currentNode.h_cost + neighbourDist,
|
||||||
currentCoord
|
currentCoord
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user