From 73f111b6fb063ceee1cc9503f41ca6fb3bcc5976 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 11 Jan 2024 09:17:39 +0100 Subject: b --- src/dijkstra.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src') diff --git a/src/dijkstra.cpp b/src/dijkstra.cpp index 2ee12a23..ef980ee6 100644 --- a/src/dijkstra.cpp +++ b/src/dijkstra.cpp @@ -185,8 +185,6 @@ path_search_result astar::Dijkstra(world& w, const point from, const point to, if (!path_search::is_passable(w, to.coord(), to.offset(), own_size, own_id, p)) return {}; - cache.allocate(from, max_dist); - constexpr int8_t div_min = -div_factor*2, div_max = div_factor*2; for (int8_t y = div_min; y <= div_max; y++) -- cgit v1.2.3