* Finds out if a company has a certain buildable railtype available. * @param company the company in question * @param railtype requested RailType * @return true if company has requested RailType available */
| 66 | * @return true if company has requested RailType available |
| 67 | */ |
| 68 | bool HasRailTypeAvail(const CompanyID company, const RailType railtype) |
| 69 | { |
| 70 | return !_railtypes_hidden_mask.Test(railtype) && Company::Get(company)->avail_railtypes.Test(railtype); |
| 71 | } |
| 72 | |
| 73 | /** |
| 74 | * Test if any buildable railtype is available for a company. |
no test coverage detected