mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 12:09:36 +00:00
Fix up some level editor dialog behavior
This commit is contained in:
@@ -18,6 +18,9 @@ struct Point
|
||||
Point &operator-=(const Point &other);
|
||||
Point &operator+=(const Point &other);
|
||||
|
||||
bool operator==(const Point &other) const;
|
||||
bool operator!=(const Point &other) const;
|
||||
|
||||
static Point Create(int16_t h, int16_t v);
|
||||
};
|
||||
|
||||
@@ -139,6 +142,17 @@ inline Point &Point::operator+=(const Point &other)
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline bool Point::operator==(const Point &other) const
|
||||
{
|
||||
return this->h == other.h && this->v == other.v;
|
||||
}
|
||||
|
||||
inline bool Point::operator!=(const Point &other) const
|
||||
{
|
||||
return !((*this) == other);
|
||||
}
|
||||
|
||||
|
||||
inline Point Point::Create(int16_t h, int16_t v)
|
||||
{
|
||||
Point p;
|
||||
|
||||
Reference in New Issue
Block a user