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