diff options
Diffstat (limited to 'road_map.h')
-rw-r--r-- | road_map.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/road_map.h b/road_map.h index 3e506bf72..feb7656cb 100644 --- a/road_map.h +++ b/road_map.h @@ -55,6 +55,18 @@ static inline TrackBits GetCrossingRailBits(TileIndex tile) } +// TODO swap owner of road and rail +static inline Owner GetCrossingRoadOwner(TileIndex t) +{ + return (Owner)_m[t].m3; +} + +static inline void SetCrossingRoadOwner(TileIndex t, Owner o) +{ + _m[t].m3 = o; +} + + typedef enum RoadType { ROAD_NORMAL, ROAD_CROSSING, |