summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-10-21 16:35:25 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-10-21 16:35:25 +0200
commit809668a3d816e560616ea33e9477959f7c518ccf (patch)
tree601ba55970ea1b110cd1830ff331ac2ff5c6bc7b /src
parent67a9004bd076a6e875eb0f88d93518a4b91f03b5 (diff)
a
Diffstat (limited to 'src')
-rw-r--r--src/dijkstra.cpp2
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++)