mirror of https://github.com/OpenRCT2/OpenRCT2.git
Do not try to force dimensions of a rectangle (#12115)
This commit is contained in:
parent
fdef47dc86
commit
99b39f04e7
|
@ -659,9 +659,6 @@ template<class T> struct RectRange : public CoordsRange<T>
|
||||||
RectRange(const T& leftTop, const T& rightBottom)
|
RectRange(const T& leftTop, const T& rightBottom)
|
||||||
: CoordsRange<T>(leftTop, rightBottom)
|
: CoordsRange<T>(leftTop, rightBottom)
|
||||||
{
|
{
|
||||||
// Make sure it's a rectangle
|
|
||||||
assert(std::abs(CoordsRange<T>::GetLeft() - CoordsRange<T>::GetRight()) > 0);
|
|
||||||
assert(std::abs(CoordsRange<T>::GetTop() - CoordsRange<T>::GetBottom()) > 0);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue