From 89d3e4365d68ab4fcf93b275b454303f55fc6352 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 16 Oct 2023 06:32:13 +0200 Subject: a --- src/path-search-dijkstra.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/path-search-dijkstra.cpp') diff --git a/src/path-search-dijkstra.cpp b/src/path-search-dijkstra.cpp index 3c2dd7e2..844a2c0f 100644 --- a/src/path-search-dijkstra.cpp +++ b/src/path-search-dijkstra.cpp @@ -144,7 +144,7 @@ path_search_result astar::Dijkstra(world& w, const point from_, const point to_, { const auto bb0 = bbox_from_pos(Vector2(from.local()), {}, own_size); uint32_t idx = 0; - constexpr int8_t div_min = div_factor*-2, div_max = div_factor*2; + constexpr int8_t div_min = div_factor*-2, div_max = div_factor*2+1; for (int8_t y = div_min; y <= div_max; y++) for (int8_t x = div_min; x <= div_max; x++) -- cgit v1.2.3