equal
deleted
inserted
replaced
1967 */ |
1967 */ |
1968 const Order *o; |
1968 const Order *o; |
1969 FOR_VEHICLE_ORDERS(v, o) { |
1969 FOR_VEHICLE_ORDERS(v, o) { |
1970 if (o->IsType(OT_GOTO_STATION) && !HasBit(o->flags, OF_TRANSFER)) { |
1970 if (o->IsType(OT_GOTO_STATION) && !HasBit(o->flags, OF_TRANSFER)) { |
1971 /* Vehicle visits a station to load or unload */ |
1971 /* Vehicle visits a station to load or unload */ |
1972 Station *st = GetStation(o->dest); |
1972 Station *st = GetStation(o->GetDestination()); |
1973 if (!st->IsValid()) continue; |
1973 if (!st->IsValid()) continue; |
1974 |
1974 |
1975 /* Same cargo produced by industry is dropped here => not serviced by vehicle v */ |
1975 /* Same cargo produced by industry is dropped here => not serviced by vehicle v */ |
1976 if (HasBit(o->flags, OF_UNLOAD) && !c_accepts) break; |
1976 if (HasBit(o->flags, OF_UNLOAD) && !c_accepts) break; |
1977 |
1977 |