diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-16 06:32:13 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-16 06:32:13 +0200 |
commit | 89d3e4365d68ab4fcf93b275b454303f55fc6352 (patch) | |
tree | bbcd29e1ab2d055b5ba47d00cb1e58c17101b56c /src | |
parent | 078c7fe713fc9f5d24e3147bea00f01d35c18eb4 (diff) |
a
Diffstat (limited to 'src')
-rw-r--r-- | src/path-search-dijkstra.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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++) |