1
0
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:
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

@@ -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;
}