summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-09-12 10:58:51 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-09-12 10:58:51 +0200
commitfa58acb73e55103defc5153f128cdcf0bbf53420 (patch)
tree6edb6d3088d1b8f430db15855f3c24b196f0f9fb
parentdcc939367d5017ba6cac268337515ac6e460d451 (diff)
add unfortunate assert
-rw-r--r--src/tile.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tile.cpp b/src/tile.cpp
index 2d658ff1..53ae88b3 100644
--- a/src/tile.cpp
+++ b/src/tile.cpp
@@ -3,6 +3,9 @@
namespace floormat {
+// no avoiding it with rotations
+static_assert(iTILE_SIZE2.x() == iTILE_SIZE2.y());
+
bool operator==(const tile_proto& a, const tile_proto& b) noexcept {
return a.ground() == b.ground() &&
a.wall_north() == b.wall_north() &&