-leftover debug code was causing a crash in navigation 2d, removed it and fixes #3374
This commit is contained in:
parent
b30839fb08
commit
fe46f0d2b2
@ -494,6 +494,8 @@ Vector<Vector2> Navigation2D::get_simple_path(const Vector2& p_start, const Vect
|
|||||||
|
|
||||||
open_list.erase(least_cost_poly);
|
open_list.erase(least_cost_poly);
|
||||||
}
|
}
|
||||||
|
#if 0
|
||||||
|
debug path
|
||||||
{
|
{
|
||||||
Polygon *p=end_poly;
|
Polygon *p=end_poly;
|
||||||
int idx=0;
|
int idx=0;
|
||||||
@ -514,6 +516,7 @@ Vector<Vector2> Navigation2D::get_simple_path(const Vector2& p_start, const Vect
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
if (found_route) {
|
if (found_route) {
|
||||||
|
|
||||||
Vector<Vector2> path;
|
Vector<Vector2> path;
|
||||||
|
Loading…
Reference in New Issue
Block a user