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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user