Housekeeping.
This commit is contained in:
@@ -55,7 +55,7 @@ func find_path(from: Vector2i, to: Vector2i, return_closest: bool = false) -> Ar
|
|||||||
assert(_used_rect.has_point(from))
|
assert(_used_rect.has_point(from))
|
||||||
assert(_used_rect.has_point(to))
|
assert(_used_rect.has_point(to))
|
||||||
|
|
||||||
var res = _astar.find_path(from, to, return_closest) # vrne Variant: null ali Array[Vector2i]
|
var res = _astar.find_path(from, to, return_closest) # returns Variant: null or Array[Vector2i]
|
||||||
|
|
||||||
if res != null:
|
if res != null:
|
||||||
return res
|
return res
|
||||||
|
|||||||
Reference in New Issue
Block a user