mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-21 22:13:07 +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:
@@ -602,7 +602,7 @@ static void track_design_mirror_ride(rct_track_td6* td6)
|
||||
entrance->y = -entrance->y;
|
||||
if (entrance->direction & 1)
|
||||
{
|
||||
entrance->direction ^= (1 << 1);
|
||||
entrance->direction = direction_reverse(entrance->direction);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -627,7 +627,7 @@ static void track_design_mirror_maze(rct_track_td6* td6)
|
||||
{
|
||||
if (maze->direction & 1)
|
||||
{
|
||||
maze->direction ^= (1 << 1);
|
||||
maze->direction = direction_reverse(maze->direction);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user