diff --git a/common/include/vecmat.h b/common/include/vecmat.h index b4eb2bfbe..51bfacde8 100644 --- a/common/include/vecmat.h +++ b/common/include/vecmat.h @@ -36,6 +36,7 @@ namespace dcx { struct vms_vector { fix x, y, z; + constexpr bool operator==(const vms_vector &rhs) const = default; }; class vm_distance diff --git a/similar/main/gameseq.cpp b/similar/main/gameseq.cpp index 93fccf0a3..5e417bd0c 100644 --- a/similar/main/gameseq.cpp +++ b/similar/main/gameseq.cpp @@ -254,11 +254,6 @@ static unsigned count_number_of_objects_of_type(fvcobjptr &vcobjptr) #define count_number_of_robots count_number_of_objects_of_type #define count_number_of_hostages count_number_of_objects_of_type -static bool operator!=(const vms_vector &a, const vms_vector &b) -{ - return a.x != b.x || a.y != b.y || a.z != b.z; -} - constexpr constant_xrange displacement_sides{}; static_assert(static_cast(sidenum_t::WBACK) + 1 == static_cast(sidenum_t::WFRONT), "side ordering error");