* Checks whether the order goes to a station or not, i.e. whether the * destination is a station * @param v the vehicle to check for * @param o the order to check * @return true if the destination is a station */
| 537 | * @return true if the destination is a station |
| 538 | */ |
| 539 | static inline bool OrderGoesToStation(const Vehicle *v, const Order &o) |
| 540 | { |
| 541 | return o.IsType(OT_GOTO_STATION) || |
| 542 | (v->type == VEH_AIRCRAFT && o.IsType(OT_GOTO_DEPOT) && o.GetDestination() != StationID::Invalid()); |
| 543 | } |
| 544 | |
| 545 | /** |
| 546 | * Delete all news items regarding defective orders about a vehicle |
no test coverage detected