diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-02-25 21:11:18 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-02-25 21:11:18 +0100 |
commit | 0b694f21edc97bd95faa65197bdda6b440479df3 (patch) | |
tree | 6ea5311aeb8c0b9613db429b1ffbe670924ea6b7 /src/chunk.hpp | |
parent | a823c20d5d789a680a83a5edc5794abf943da378 (diff) |
a
Diffstat (limited to 'src/chunk.hpp')
-rw-r--r-- | src/chunk.hpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/chunk.hpp b/src/chunk.hpp index 0cd7dfc7..6ba8ef5e 100644 --- a/src/chunk.hpp +++ b/src/chunk.hpp @@ -86,8 +86,10 @@ struct chunk final void ensure_passability() noexcept; - const RTree<std::uint64_t, float, 2, float>* rtree() const noexcept; - RTree<std::uint64_t, float, 2, float>* rtree() noexcept; + using RTree = ::RTree<std::uint64_t, float, 2, float>; + + const RTree* rtree() const noexcept; + RTree* rtree() noexcept; private: std::array<std::shared_ptr<tile_atlas>, TILE_COUNT> _ground_atlases; @@ -102,7 +104,7 @@ private: GL::Mesh ground_mesh{NoCreate}, wall_mesh{NoCreate}, scenery_mesh{NoCreate}; - RTree<std::uint64_t, float, 2, float> _rtree; + RTree _rtree; mutable bool _maybe_empty : 1 = true, _ground_modified : 1 = true, |