From 055b027a3cf567fd8cfe19e1aad7a055f2449b86 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 29 Oct 2022 03:10:43 +0200 Subject: a --- src/tile.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/tile.cpp') diff --git a/src/tile.cpp b/src/tile.cpp index 82970c76..7e988a27 100644 --- a/src/tile.cpp +++ b/src/tile.cpp @@ -2,4 +2,12 @@ namespace floormat { +bool operator==(const tile& a, const tile& b) noexcept +{ + return a.ground == b.ground && + a.wall_north == b.wall_north && + a.wall_west == b.wall_west && + a.passability == b.passability; +} + } // namespace floormat -- cgit v1.2.3