1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-27 08:45:00 +01:00

Make const some methods of location objects (#10392)

This commit is contained in:
Tulio Leao
2019-12-18 07:21:16 -03:00
committed by Michael Steenbeek
parent 52d09171ba
commit 4f615c5802

View File

@@ -177,7 +177,7 @@ struct TileCoordsXY
return *this;
}
TileCoordsXY Rotate(int32_t direction)
TileCoordsXY Rotate(int32_t direction) const
{
TileCoordsXY rotatedCoords;
switch (direction & 3)
@@ -283,7 +283,7 @@ struct TileCoordsXYZ
return !(*this == other);
}
CoordsXYZ ToCoordsXYZ()
CoordsXYZ ToCoordsXYZ() const
{
return { x * 32, y * 32, z * 8 };
}