From 809668a3d816e560616ea33e9477959f7c518ccf Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 21 Oct 2023 16:35:25 +0200 Subject: a --- src/dijkstra.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dijkstra.cpp b/src/dijkstra.cpp index 1adc021a..b742c276 100644 --- a/src/dijkstra.cpp +++ b/src/dijkstra.cpp @@ -151,7 +151,7 @@ path_search_result astar::Dijkstra(world& w, const point from_, const point to_, add_to_heap(0); { const auto bb0 = bbox_from_pos(Vector2(from.local()), {}, own_size); - constexpr int8_t div_min = -div_factor, div_max = div_factor; + constexpr int8_t div_min = -div_factor*2, div_max = div_factor*2; for (int8_t y = div_min; y <= div_max; y++) for (int8_t x = div_min; x <= div_max; x++) -- cgit v1.2.3