summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/scenery.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/scenery.hpp b/src/scenery.hpp
index 05a72b43..4ed55d20 100644
--- a/src/scenery.hpp
+++ b/src/scenery.hpp
@@ -11,7 +11,9 @@ enum class rotation : std::uint8_t {
N, NE, E, SE, S, SW, W, NW,
};
-constexpr inline rotation rotation_COUNT = rotation{8};
+constexpr inline std::size_t rotation_BITS = 3;
+constexpr inline std::size_t rotation_MASK = (1 << rotation_BITS)-1;
+constexpr inline rotation rotation_COUNT = rotation{1 << rotation_BITS};
enum class scenery_type : std::uint8_t {
none, generic, door,