summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-10-22 21:58:27 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-10-22 21:58:27 +0200
commit264c759ce2cdc53df28248394f40400d6dcf9ace (patch)
treefbd7284978ae4ae7fb4ee55e57e3fc22c66301a2
parent90b68c65c6f17f3eaa0ba4d85794e393816f4344 (diff)
a
-rw-r--r--src/dijkstra.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/dijkstra.cpp b/src/dijkstra.cpp
index 1e6602d3..b7ebc267 100644
--- a/src/dijkstra.cpp
+++ b/src/dijkstra.cpp
@@ -351,13 +351,8 @@ void astar::cache::allocate(point from, uint32_t max_dist)
if (len > array.size())
array = Array<chunk_cache>{ValueInit, len};
else
- {
for (auto i = 0uz; i < len; i++)
- {
array[i].exists = {};
- //array[i].indexes = {}; // todo
- }
- }
}
size_t astar::cache::get_chunk_index(Vector2i start, Vector2ui size, Vector2i coord)