summaryrefslogtreecommitdiffhomepage
path: root/src/path-search.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-10-16 06:26:50 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-10-16 06:26:50 +0200
commit0c212400d745a46161ce64c537b468a72c432018 (patch)
tree1f7a7d9e3de2a5393530bd249f67adc75f2e4306 /src/path-search.hpp
parent5169a59aa5f3038b68dedab48161aa81f2c87310 (diff)
a
Diffstat (limited to 'src/path-search.hpp')
-rw-r--r--src/path-search.hpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/path-search.hpp b/src/path-search.hpp
index 9456c2e6..4ca5b7b4 100644
--- a/src/path-search.hpp
+++ b/src/path-search.hpp
@@ -62,7 +62,6 @@ struct astar
using pred = path_search::pred;
template<typename T> using bbox = path_search::bbox<T>;
- struct point_hash { size_t operator()(const point& pt) const { return pt.hash(); } };
fm_DECLARE_DELETED_COPY_ASSIGNMENT(astar);
@@ -92,12 +91,12 @@ private:
size_t get_chunk_index(Vector2i chunk) const;
static size_t get_chunk_index(Vector2i start, Vector2ui size, Vector2i coord);
- static size_t get_tile_index(Vector2b from_offset, Vector2i pos, Vector2b offset);
+ static size_t get_tile_index(Vector2i pos, Vector2b offset);
static Vector2ui get_size_to_allocate(uint32_t max_dist);
void allocate(point from, uint32_t max_dist);
void add_index(size_t chunk_index, size_t tile_index, uint32_t index);
- void add_index(Vector2b from_offset, point pt, uint32_t index);
+ void add_index(point pt, uint32_t index);
uint32_t lookup_index(size_t chunk_index, size_t tile_index);
};