mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-17 21:12:34 +01:00
Remove assert on ScreenLine (#12333)
Code is not always constructing a valid line
This commit is contained in:
@@ -712,8 +712,6 @@ struct ScreenLine : public CoordsRange<ScreenCoordsXY>
|
|||||||
ScreenLine(const ScreenCoordsXY& leftTop, const ScreenCoordsXY& rightBottom)
|
ScreenLine(const ScreenCoordsXY& leftTop, const ScreenCoordsXY& rightBottom)
|
||||||
: CoordsRange<ScreenCoordsXY>(leftTop, rightBottom)
|
: CoordsRange<ScreenCoordsXY>(leftTop, rightBottom)
|
||||||
{
|
{
|
||||||
// Make sure one of the point coords change
|
|
||||||
assert((std::abs(GetX1() - GetX2()) > 0) || (std::abs(GetY1() - GetY2()) > 0));
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user