summaryrefslogtreecommitdiffhomepage
path: root/src/scenery.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-17 07:12:49 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-17 23:23:11 +0100
commitd0efe8b98e2941028304d3f419197002e4ad2811 (patch)
tree2dbb810c0e4548c1debdcc832e92a0473d9227a0 /src/scenery.hpp
parent721503fb783beb2c6a11c5f9aa589ef210cb8699 (diff)
bbb
Diffstat (limited to 'src/scenery.hpp')
-rw-r--r--src/scenery.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/scenery.hpp b/src/scenery.hpp
index 68ba1607..61024b55 100644
--- a/src/scenery.hpp
+++ b/src/scenery.hpp
@@ -15,16 +15,16 @@ struct chunk;
struct anim_atlas;
struct world;
-enum class scenery_type : std::uint8_t {
+enum class scenery_type : unsigned char {
none, generic, door,
};
struct scenery_proto : entity_proto
{
scenery_type sc_type : 3 = scenery_type::none;
- std::uint8_t active : 1 = false;
- std::uint8_t closing : 1 = false;
- std::uint8_t interactive : 1 = false;
+ unsigned char active : 1 = false;
+ unsigned char closing : 1 = false;
+ unsigned char interactive : 1 = false;
scenery_proto();
scenery_proto(const scenery_proto&);
@@ -37,9 +37,9 @@ struct scenery_proto : entity_proto
struct scenery final : entity
{
scenery_type sc_type : 3 = scenery_type::none;
- std::uint8_t active : 1 = false;
- std::uint8_t closing : 1 = false;
- std::uint8_t interactive : 1 = false;
+ unsigned char active : 1 = false;
+ unsigned char closing : 1 = false;
+ unsigned char interactive : 1 = false;
bool can_activate(std::size_t i) const override;
bool activate(std::size_t i) override;