1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-29 17:54:50 +01:00

Introduce many uses of direction_reverse

Change many of the places doing the ^2 trick to use direction_reverse instead, for improved readability.
This commit is contained in:
Richard Fine
2019-01-05 15:41:19 +00:00
parent fd60654238
commit e90e9dd73f
19 changed files with 92 additions and 90 deletions

View File

@@ -624,7 +624,7 @@ bool map_coord_is_connected(int32_t x, int32_t y, int32_t z, uint8_t faceDirecti
if (z == tileElement->base_height + 2)
return true;
}
else if ((slopeDirection ^ 2) == faceDirection && z == tileElement->base_height)
else if (direction_reverse(slopeDirection) == faceDirection && z == tileElement->base_height)
{
return true;
}