* Validate functions for rail building. * @param rail the railtype to check. * @return true if the current company may build the rail. */
| 88 | * @return true if the current company may build the rail. |
| 89 | */ |
| 90 | bool ValParamRailType(const RailType rail) |
| 91 | { |
| 92 | return rail < RAILTYPE_END && HasRailTypeAvail(_current_company, rail); |
| 93 | } |
| 94 | |
| 95 | /** |
| 96 | * Add the rail types that are to be introduced at the given date. |
no test coverage detected