diff --git a/src/road_map.h b/src/road_map.h --- a/src/road_map.h +++ b/src/road_map.h @@ -187,6 +187,12 @@ static inline void SetRoadOwner(TileInde } } +static inline bool IsRoadOwner(TileIndex t, RoadType rt, Owner o) +{ + assert(HasTileRoadType(t, rt)); + return (GetRoadOwner(t, rt) == o); +} + /** Which directions are disallowed ? */ enum DisallowedRoadDirections { DRD_NONE, ///< None of the directions are disallowed