1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-10 17:42:29 +01:00

Remove assert on ScreenLine (#12333)

Code is not always constructing a valid line
This commit is contained in:
Tulio Leao
2020-07-20 18:49:15 -03:00
committed by GitHub
parent 6e077c42ea
commit d10b615eb3

View File

@@ -712,8 +712,6 @@ struct ScreenLine : public CoordsRange<ScreenCoordsXY>
ScreenLine(const ScreenCoordsXY& leftTop, const ScreenCoordsXY& rightBottom)
: CoordsRange<ScreenCoordsXY>(leftTop, rightBottom)
{
// Make sure one of the point coords change
assert((std::abs(GetX1() - GetX2()) > 0) || (std::abs(GetY1() - GetY2()) > 0));
}
};