summaryrefslogtreecommitdiffhomepage
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
parentd9e5e232b60731d56b1b60f2fe113e2450f18208 (diff)
use boolean bitfields, not uint8_t
-rw-r--r--floormat/settings.hpp10
-rw-r--r--src/chunk.hpp6
2 files changed, 8 insertions, 8 deletions
diff --git a/floormat/settings.hpp b/floormat/settings.hpp
index 01ded6c4..538d932d 100644
--- a/floormat/settings.hpp
+++ b/floormat/settings.hpp
@@ -23,11 +23,11 @@ struct fm_settings
bool vsync = true;
fm_gpu_debug gpu_debug = fm_gpu_debug::on;
fm_log_level log_level = fm_log_level::normal;
- unsigned resizable : 1 = true,
- fullscreen : 1 = false,
- fullscreen_desktop : 1 = false,
- borderless : 1 = false,
- maximized : 1 = false;
+ bool resizable : 1 = true,
+ fullscreen : 1 = false,
+ fullscreen_desktop : 1 = false,
+ borderless : 1 = false,
+ maximized : 1 = false;
std::uint8_t msaa_samples = 16;
};
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