1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

Add track_cable_lift functions to compat.c

This commit is contained in:
Michael Steenbeek
2017-11-16 09:20:17 +01:00
parent a5dee3a0ae
commit 99830ed069

View File

@@ -272,3 +272,18 @@ void track_element_set_type(rct_tile_element * tileElement, uint8 type)
{
tileElement->properties.track.type = type;
}
bool track_element_is_cable_lift(rct_tile_element * trackElement)
{
return trackElement->properties.track.colour & TRACK_ELEMENT_COLOUR_FLAG_CABLE_LIFT;
}
void track_element_set_cable_lift(rct_tile_element * trackElement)
{
trackElement->properties.track.colour |= TRACK_ELEMENT_COLOUR_FLAG_CABLE_LIFT;
}
void track_element_clear_cable_lift(rct_tile_element * trackElement)
{
trackElement->properties.track.colour &= ~TRACK_ELEMENT_COLOUR_FLAG_CABLE_LIFT;
}