Returning from point and returning empty array from C++ if no path found.
This commit is contained in:
@@ -78,7 +78,7 @@ public:
|
||||
TerrainType get_terrain(const Vector2i &cell) const;
|
||||
void set_unit(const Vector2i &cell, bool blocked);
|
||||
bool get_unit(const Vector2i &cell) const;
|
||||
Variant find_path(const Vector2i &from, const Vector2i &to, bool return_closest);
|
||||
TypedArray<Vector2i> find_path(const Vector2i &from, const Vector2i &to, bool return_closest);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user