From 7645616583a205e6d93c4531dfdafbff699068e7 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 25 Feb 2024 07:11:10 +0100 Subject: cleanup includes --- src/search-cache.cpp | 1 + src/search-cache.hpp | 8 ++++++-- src/wall-atlas.hpp | 3 +-- 3 files changed, 8 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/search-cache.cpp b/src/search-cache.cpp index 511d72b4..dd73601f 100644 --- a/src/search-cache.cpp +++ b/src/search-cache.cpp @@ -1,5 +1,6 @@ #include "search-cache.hpp" #include "search-constants.hpp" +#include "point.hpp" #include "world.hpp" #include diff --git a/src/search-cache.hpp b/src/search-cache.hpp index ee6f7537..c8fc8bbe 100644 --- a/src/search-cache.hpp +++ b/src/search-cache.hpp @@ -1,11 +1,15 @@ #pragma once #include "compat/defs.hpp" -#include "point.hpp" #include #include #include -namespace floormat { class world; class chunk; } +namespace floormat { +class world; +class chunk; +struct point; +struct chunk_coords_; +} // namespace floormat namespace floormat::Search { diff --git a/src/wall-atlas.hpp b/src/wall-atlas.hpp index c1f60a03..2bc03dc0 100644 --- a/src/wall-atlas.hpp +++ b/src/wall-atlas.hpp @@ -4,7 +4,6 @@ #include "src/pass-mode.hpp" #include "wall-defs.hpp" #include -#include // todo replace with array #include #include #include @@ -97,7 +96,7 @@ struct wall_atlas_def final Array frames; Array direction_array; std::array direction_map; - std::bitset direction_mask{0}; + std::array direction_mask{}; static wall_atlas_def deserialize(StringView filename); void serialize(StringView filename) const; -- cgit v1.2.3