summaryrefslogtreecommitdiffhomepage
path: root/src/path-search.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-02-24 15:57:43 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-02-24 15:57:43 +0100
commit16f6ec061a2c6b1122974fe149b7645d8ad46e2b (patch)
tree07cede31134ef3bb1e3ae621c3ac81e23aad8e66 /src/path-search.hpp
parentfabb82b7850d9a332579b5d05c5a787ce8a24ce8 (diff)
move walkable region calculation to class chunk
Diffstat (limited to 'src/path-search.hpp')
-rw-r--r--src/path-search.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/path-search.hpp b/src/path-search.hpp
index c48b5532..daf3379d 100644
--- a/src/path-search.hpp
+++ b/src/path-search.hpp
@@ -20,9 +20,10 @@ namespace floormat::detail_astar {
template<typename T> struct bbox;
struct cache;
struct chunk_cache;
-static constexpr int div_factor = 4;
-static constexpr auto div_size = iTILE_SIZE2 / div_factor;
-static constexpr auto min_size = Vector2ui(div_size * 2);
+constexpr inline int div_factor = 4;
+constexpr inline auto div_size = iTILE_SIZE2 / div_factor;
+constexpr inline auto min_size = Vector2ui(div_size * 2);
+constexpr inline auto div_count = iTILE_SIZE2 * TILE_MAX_DIM / detail_astar::div_size;
} // namespace floormat::detail_astar