diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-09 10:06:54 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-09 10:06:54 +0200 |
commit | dd00820933be56fbe3ef2b296a5b59b7f78316ca (patch) | |
tree | b61d37edc8257cf82e26b23b71d57287c8545979 /src | |
parent | 4b6e676db5b6e034900adb39510e7b36560e96ad (diff) |
a
Diffstat (limited to 'src')
-rw-r--r-- | src/path-search-dijkstra.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/path-search-dijkstra.cpp b/src/path-search-dijkstra.cpp index e0f09a65..fa04d33b 100644 --- a/src/path-search-dijkstra.cpp +++ b/src/path-search-dijkstra.cpp @@ -238,6 +238,9 @@ path_search_result astar::Dijkstra(world& w, point from_, point to_, object_id o n_offset = n.offset; n_pt = {n_coord, n_offset}; n_dist = n.dist; +#if FM_ASTAR_NO_EDGE_CACHE + (void)n_pt; +#endif } if (auto d = distance({n_coord, n_offset}, {to, to_offset}); d < closest) |