1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 15:24:30 +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

@@ -499,7 +499,7 @@ namespace Editor
int32_t x = parkEntrance.x;
int32_t y = parkEntrance.y;
int32_t z = parkEntrance.z / 8;
int32_t direction = parkEntrance.direction ^ 2;
int32_t direction = direction_reverse(parkEntrance.direction);
switch (footpath_is_connected_to_map_edge(x, y, z, direction, 0))
{