From fa58acb73e55103defc5153f128cdcf0bbf53420 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 12 Sep 2023 10:58:51 +0200 Subject: add unfortunate assert --- src/tile.cpp | 3 +++ 1 file changed, 3 insertions(+) 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() && -- cgit v1.2.3