summaryrefslogtreecommitdiffhomepage
path: root/src/chunk.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-17 09:28:01 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-17 09:28:31 +0100
commitec9ee23f869f54ae4dccd0dff16fbbf890c299c0 (patch)
tree280e614a2dc7c0934ca2cbdc579087613f4f5cb0 /src/chunk.hpp
parentd9e5e232b60731d56b1b60f2fe113e2450f18208 (diff)
use boolean bitfields, not uint8_t
Diffstat (limited to 'src/chunk.hpp')
-rw-r--r--src/chunk.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/chunk.hpp b/src/chunk.hpp
index 77e91519..16533e5a 100644
--- a/src/chunk.hpp
+++ b/src/chunk.hpp
@@ -69,9 +69,9 @@ private:
std::array<scenery, TILE_COUNT> _scenery_variants = {};
std::bitset<TILE_COUNT*2> _passability = {};
GL::Mesh ground_mesh{NoCreate}, wall_mesh{NoCreate};
- mutable std::uint8_t _maybe_empty : 1 = true,
- _ground_modified : 1 = true,
- _walls_modified : 1 = true;
+ mutable bool _maybe_empty : 1 = true,
+ _ground_modified : 1 = true,
+ _walls_modified : 1 = true;
};
} // namespace floormat