diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-08-26 10:56:50 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-09-20 16:08:45 +0200 |
commit | a0b26eea80f4703c632a60efcc4115e826e36506 (patch) | |
tree | ecc8e3dc0ea118cbc43e5a7dabf26a1c68fa2489 | |
parent | 2eb7f679e7adf429210eb59a221acdc83c47b7d5 (diff) |
c
-rw-r--r-- | src/chunk-walls.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/chunk-walls.cpp b/src/chunk-walls.cpp index 274b7769..9971bcde 100644 --- a/src/chunk-walls.cpp +++ b/src/chunk-walls.cpp @@ -37,11 +37,11 @@ using Wall::Frame; template<Group_ G, bool IsWest> constexpr Quads::quad get_quad(float depth) { - CORRADE_ASSUME(G < Group_::COUNT); + static_assert(G < Group_::COUNT); + constexpr Vector2 half_tile = TILE_SIZE2*.5f; constexpr float X = half_tile.x(), Y = half_tile.y(), Z = TILE_SIZE.z(); - fm_assert(G < Group_::COUNT); switch (G) { using enum Group_; @@ -128,7 +128,7 @@ ArrayView<const Quads::indexes> make_indexes(size_t max) template<Group_ G, bool IsWest> constexpr float depth_offset_for_group() { - CORRADE_ASSUME(G < Group_::COUNT); + static_assert(G < Group_::COUNT); float p = IsWest ? tile_shader::wall_west_offset : 0; switch (G) { |