Use explicitly defaulted operator== for vms_vector

This commit is contained in:
Kp 2022-10-09 23:15:19 +00:00
parent 017e786139
commit fbc184500d
2 changed files with 1 additions and 5 deletions

View file

@ -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

View file

@ -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<OBJ_ROBOT>
#define count_number_of_hostages count_number_of_objects_of_type<OBJ_HOSTAGE>
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<sidenum_t, sidenum_t::WRIGHT, sidenum_t::WFRONT> displacement_sides{};
static_assert(static_cast<uint8_t>(sidenum_t::WBACK) + 1 == static_cast<uint8_t>(sidenum_t::WFRONT), "side ordering error");