1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 13:33:02 +01:00

Clean up tile element usage, introduce struct methods

This commit is contained in:
Michael Steenbeek
2018-05-02 10:31:03 +02:00
parent cc694e27d8
commit ef433df26a
20 changed files with 112 additions and 61 deletions

View File

@@ -2126,18 +2126,18 @@ void track_get_front(CoordsXYE * input, CoordsXYE * output)
bool track_element_is_lift_hill(const rct_tile_element * trackElement)
{
return trackElement->type & TRACK_ELEMENT_FLAG_CHAIN_LIFT;
return trackElement->type & TRACK_ELEMENT_TYPE_FLAG_CHAIN_LIFT;
}
void track_element_set_lift_hill(rct_tile_element * trackElement, bool on)
{
if (on)
{
trackElement->type |= TRACK_ELEMENT_FLAG_CHAIN_LIFT;
trackElement->type |= TRACK_ELEMENT_TYPE_FLAG_CHAIN_LIFT;
}
else
{
trackElement->type &= ~TRACK_ELEMENT_FLAG_CHAIN_LIFT;
trackElement->type &= ~TRACK_ELEMENT_TYPE_FLAG_CHAIN_LIFT;
}
}