summaryrefslogtreecommitdiffhomepage
path: root/src/local-coords.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-03 15:24:33 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-03 15:24:33 +0100
commit235078bae4ada8b7aed3c1cdf95d8288aaf81df4 (patch)
treeda2979408771be5e496d0ffaf5af3634cd61e4a3 /src/local-coords.hpp
parent4e5cdeaa32fd73f160ee0d599ce958169082eeac (diff)
flush scenery popup work
Diffstat (limited to 'src/local-coords.hpp')
-rw-r--r--src/local-coords.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/local-coords.hpp b/src/local-coords.hpp
index a26d8c80..eef511d6 100644
--- a/src/local-coords.hpp
+++ b/src/local-coords.hpp
@@ -15,6 +15,7 @@ struct local_coords final {
constexpr local_coords(T x, T y) noexcept;
constexpr local_coords(std::uint8_t x, std::uint8_t y) noexcept : x{x}, y{y} {}
constexpr std::uint8_t to_index() const noexcept { return y*TILE_MAX_DIM + x; }
+ constexpr bool operator==(const local_coords&) const noexcept = default;
template<typename T> explicit constexpr operator Math::Vector2<T>() const noexcept { return Math::Vector2<T>(T(x), T(y)); }
template<typename T> explicit constexpr operator Math::Vector3<T>() const noexcept { return Math::Vector3<T>(T(x), T(y), T(0)); }