diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-08-28 00:10:47 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-08-28 00:10:47 +0200 |
commit | 1e6b6eaf49fcee309b44a13e5585b6731d44bec4 (patch) | |
tree | 245edc9f64025f3df1c943b28a36e3659816440a /core/math/a_star.h | |
parent | 9c7cf5440cba7e2bbccd9d6e516c0f990d45ce4a (diff) | |
parent | ed61d416978760f6bdb511670fcd395890319ff2 (diff) | |
download | redot-engine-1e6b6eaf49fcee309b44a13e5585b6731d44bec4.tar.gz |
Merge pull request #92123 from timothyqiu/estimate-end
Change param name of AStar's `_estimate_cost` method
Diffstat (limited to 'core/math/a_star.h')
-rw-r--r-- | core/math/a_star.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/math/a_star.h b/core/math/a_star.h index 8e054c4789..143a3bec61 100644 --- a/core/math/a_star.h +++ b/core/math/a_star.h @@ -120,7 +120,7 @@ class AStar3D : public RefCounted { protected: static void _bind_methods(); - virtual real_t _estimate_cost(int64_t p_from_id, int64_t p_to_id); + virtual real_t _estimate_cost(int64_t p_from_id, int64_t p_end_id); virtual real_t _compute_cost(int64_t p_from_id, int64_t p_to_id); GDVIRTUAL2RC(real_t, _estimate_cost, int64_t, int64_t) @@ -176,7 +176,7 @@ class AStar2D : public RefCounted { protected: static void _bind_methods(); - virtual real_t _estimate_cost(int64_t p_from_id, int64_t p_to_id); + virtual real_t _estimate_cost(int64_t p_from_id, int64_t p_end_id); virtual real_t _compute_cost(int64_t p_from_id, int64_t p_to_id); GDVIRTUAL2RC(real_t, _estimate_cost, int64_t, int64_t) |