From d10b615eb33f6cd597340d83d68eaaa97c1a493e Mon Sep 17 00:00:00 2001 From: Tulio Leao Date: Mon, 20 Jul 2020 18:49:15 -0300 Subject: [PATCH] Remove assert on ScreenLine (#12333) Code is not always constructing a valid line --- src/openrct2/world/Location.hpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/openrct2/world/Location.hpp b/src/openrct2/world/Location.hpp index 1fac1d938c..adcaf82cfb 100644 --- a/src/openrct2/world/Location.hpp +++ b/src/openrct2/world/Location.hpp @@ -712,8 +712,6 @@ 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(GetX1() - GetX2()) > 0) || (std::abs(GetY1() - GetY2()) > 0)); } };