summaryrefslogtreecommitdiffhomepage
path: root/src/scenery.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-30 13:45:28 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-30 16:30:25 +0100
commit90b214c0a4b3c91ad021c9923f1b8a69ccbe88e8 (patch)
treeba018d88faee760820c7525862101c1bb66284bb /src/scenery.cpp
parentccf843360374c2f91d4d9420e4d2ccd73a03e703 (diff)
src: add missing scenery check in tile_ref::operator==
Diffstat (limited to 'src/scenery.cpp')
-rw-r--r--src/scenery.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/scenery.cpp b/src/scenery.cpp
index 5f82e151..23967af8 100644
--- a/src/scenery.cpp
+++ b/src/scenery.cpp
@@ -108,4 +108,13 @@ bool scenery::activate(const anim_atlas& atlas)
return false;
}
+#ifdef __GNUG__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wfloat-equal"
+#endif
+bool scenery::operator==(const scenery&) const noexcept = default;
+#ifdef __GNUG__
+#pragma GCC diagnostic pop
+#endif
+
} // namespace floormat