diff --git a/src/openrct2/world/Location.hpp b/src/openrct2/world/Location.hpp index 773ffb5bfa..af9a0b8787 100644 --- a/src/openrct2/world/Location.hpp +++ b/src/openrct2/world/Location.hpp @@ -666,7 +666,7 @@ struct MapRange : public CoordsRange assert(std::abs(GetLeft() - GetRight()) > 0); assert(std::abs(GetTop() - GetBottom()) > 0); } - + MapRange Normalise() const { auto result = MapRange( @@ -675,3 +675,17 @@ struct MapRange : public CoordsRange return result; } }; + +/** + * Represents a line on the screen + */ + +struct ScreenLine : public CoordsRange +{ + ScreenLine(const ScreenCoordsXY& leftTop, const ScreenCoordsXY& rightBottom) + : CoordsRange(leftTop, rightBottom) + { + // Make sure one of the point coords change + assert((std::abs(GetLeft() - GetRight()) > 0) || (std::abs(GetTop() - GetBottom()) > 0)); + } +};