diff options
Diffstat (limited to 'core/math/a_star.h')
-rw-r--r-- | core/math/a_star.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/core/math/a_star.h b/core/math/a_star.h index ec2a06f07f..94e42483f1 100644 --- a/core/math/a_star.h +++ b/core/math/a_star.h @@ -93,10 +93,6 @@ class AStar : public Reference { bool operator<(const Segment &p_s) const { return key < p_s.key; } Segment() { key = 0; } Segment(int p_from, int p_to) { - if (p_from > p_to) { - SWAP(p_from, p_to); - } - from = p_from; to = p_to; } @@ -133,8 +129,8 @@ public: bool is_point_disabled(int p_id) const; void connect_points(int p_id, int p_with_id, bool bidirectional = true); - void disconnect_points(int p_id, int p_with_id); - bool are_points_connected(int p_id, int p_with_id) const; + void disconnect_points(int p_id, int p_with_id, bool bidirectional = true); + bool are_points_connected(int p_id, int p_with_id, bool bidirectional = true) const; int get_point_count() const; int get_point_capacity() const; |