src/industry_cmd.cpp
changeset 9336 3f75a2c5e0d3
parent 9332 2e120d0bd632
child 9339 daaa2adbaf99
equal deleted inserted replaced
9335:18d3658adc60 9336:3f75a2c5e0d3
  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