mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-06 06:32:56 +01:00
Add track_element_[sg]et_type to compat.c
This commit is contained in:
@@ -261,4 +261,14 @@ uint8 track_element_get_ride_index(const rct_tile_element * tileElement)
|
||||
void track_element_set_ride_index(rct_tile_element * tileElement, uint8 rideIndex)
|
||||
{
|
||||
tileElement->properties.track.ride_index = rideIndex;
|
||||
}
|
||||
}
|
||||
|
||||
uint8 track_element_get_type(const rct_tile_element * tileElement)
|
||||
{
|
||||
return tileElement->properties.track.type;
|
||||
}
|
||||
|
||||
void track_element_set_type(rct_tile_element * tileElement, uint8 type)
|
||||
{
|
||||
tileElement->properties.track.type = type;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user