From db9532ae255798454be991a1d8cdd1bc55206363 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 7 Oct 2023 03:23:49 +0200 Subject: a --- src/path-search-dijkstra.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/path-search-dijkstra.cpp') diff --git a/src/path-search-dijkstra.cpp b/src/path-search-dijkstra.cpp index 44da9ebe..8d877784 100644 --- a/src/path-search-dijkstra.cpp +++ b/src/path-search-dijkstra.cpp @@ -112,15 +112,17 @@ path_search_result path_search::Dijkstra(world& w, Vector2ub own_size, object_id auto [cur, dist0] = astar.pop(); if (!astar.add_visited(cur)) continue; + for (auto [dir, len] : dirs) + { + + } } // todo... return result; } -path_search_result path_search::Dijkstra(world& w, const object& obj, - global_coords to, Vector2b to_offset, - const pred& p) +path_search_result path_search::Dijkstra(world& w, const object& obj, global_coords to, Vector2b to_offset, const pred& p) { constexpr auto full_tile = Vector2ub(iTILE_SIZE2*3/4); auto size = Math::max(obj.bbox_size, full_tile); -- cgit v1.2.3