1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 13:33:02 +01:00

Fix BoundBox order

This commit is contained in:
Michael Steenbeek
2022-09-07 23:50:16 +02:00
committed by GitHub
parent 88a13f7b70
commit 4f0f6608f4

View File

@@ -15,26 +15,26 @@
struct BoundBoxXY
{
CoordsXY length{};
CoordsXY offset{};
CoordsXY length{};
constexpr BoundBoxXY() = default;
constexpr BoundBoxXY(CoordsXY _length, CoordsXY _offset)
: length(_length)
, offset(_offset)
constexpr BoundBoxXY(CoordsXY _offset, CoordsXY _length)
: offset(_offset)
, length(_length)
{
}
};
struct BoundBoxXYZ
{
CoordsXYZ length{};
CoordsXYZ offset{};
CoordsXYZ length{};
constexpr BoundBoxXYZ() = default;
constexpr BoundBoxXYZ(CoordsXYZ _length, CoordsXYZ _offset)
: length(_length)
, offset(_offset)
constexpr BoundBoxXYZ(CoordsXYZ _offset, CoordsXYZ _length)
: offset(_offset)
, length(_length)
{
}
};