* Test if any buildable RoadType is available for a company. * @param company the company in question * @return true if company has any RoadTypes available */
| 150 | * @return true if company has any RoadTypes available |
| 151 | */ |
| 152 | bool HasAnyRoadTypesAvail(CompanyID company, RoadTramType rtt) |
| 153 | { |
| 154 | RoadTypes avail = Company::Get(company)->avail_roadtypes; |
| 155 | avail.Reset(_roadtypes_hidden_mask); |
| 156 | return avail.Any(GetMaskForRoadTramType(rtt)); |
| 157 | } |
| 158 | |
| 159 | /** |
| 160 | * Validate functions for rail building. |
no test coverage detected