diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-17 09:28:01 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-17 09:28:31 +0100 |
commit | ec9ee23f869f54ae4dccd0dff16fbbf890c299c0 (patch) | |
tree | 280e614a2dc7c0934ca2cbdc579087613f4f5cb0 /src | |
parent | d9e5e232b60731d56b1b60f2fe113e2450f18208 (diff) |
use boolean bitfields, not uint8_t
Diffstat (limited to 'src')
-rw-r--r-- | src/chunk.hpp | 6 |
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 |