Using std::set to sort nodes.

This commit is contained in:
2024-06-06 00:02:18 +02:00
parent 3c8b0882d7
commit a59492b229
3 changed files with 48 additions and 32 deletions

View File

@@ -61,7 +61,7 @@ func find_path() -> void:
var arr = astar.find_path(from, to, check_box.button_pressed) # vrne Variant: null ali Array
#print(arr)
print(arr.size())
#print(arr.size())
if arr.size() > 1: # if the start and the end are the same there is no line to draw
# add new path