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:
committed by
Michael Steenbeek
parent
52d09171ba
commit
4f615c5802
@@ -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 };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user