From 4f615c5802ce0ba6642864d6bacf067f54c3d2d2 Mon Sep 17 00:00:00 2001 From: Tulio Leao Date: Wed, 18 Dec 2019 07:21:16 -0300 Subject: [PATCH] Make const some methods of location objects (#10392) --- src/openrct2/world/Location.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2/world/Location.hpp b/src/openrct2/world/Location.hpp index b1f47281cf..2d41239f14 100644 --- a/src/openrct2/world/Location.hpp +++ b/src/openrct2/world/Location.hpp @@ -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 }; }