* Test whether a vehicle can load cargo at a station even if exclusive transport rights are present. * @param st Station with cargo waiting to be loaded. * @param v Vehicle loading the cargo. * @return true when a vehicle can load the cargo. */
| 1533 | * @return true when a vehicle can load the cargo. |
| 1534 | */ |
| 1535 | static bool MayLoadUnderExclusiveRights(const Station *st, const Vehicle *v) |
| 1536 | { |
| 1537 | return st->owner != OWNER_NONE || st->town->exclusive_counter == 0 || st->town->exclusivity == v->owner; |
| 1538 | } |
| 1539 | |
| 1540 | struct ReserveCargoAction { |
| 1541 | Station *st; |
no outgoing calls
no test coverage detected