diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-21 16:35:25 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-21 16:35:25 +0200 |
commit | 809668a3d816e560616ea33e9477959f7c518ccf (patch) | |
tree | 601ba55970ea1b110cd1830ff331ac2ff5c6bc7b /src | |
parent | 67a9004bd076a6e875eb0f88d93518a4b91f03b5 (diff) |
a
Diffstat (limited to 'src')
-rw-r--r-- | src/dijkstra.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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++) |