* Validate functions for rail building. * @param roadtype road type to check. * @return true if the current company may build the road. */
| 162 | * @return true if the current company may build the road. |
| 163 | */ |
| 164 | bool ValParamRoadType(RoadType roadtype) |
| 165 | { |
| 166 | return roadtype < ROADTYPE_END && HasRoadTypeAvail(_current_company, roadtype); |
| 167 | } |
| 168 | |
| 169 | /** |
| 170 | * Add the road types that are to be introduced at the given date. |
no test coverage detected