Using std::set to sort nodes.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user