|
|
@ -1754,8 +1754,9 @@ static void LoadUnloadVehicle(Vehicle *front)
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Do not pick up goods when we have no-load set or loading is stopped. */
|
|
|
|
/* Do not pick up goods when we have no-load set or loading is stopped.
|
|
|
|
if (GetLoadType(v) & OLFB_NO_LOAD || HasBit(front->vehicle_flags, VF_STOP_LOADING)) continue;
|
|
|
|
* Per-cargo no-load orders can only be checked after attempting to refit. */
|
|
|
|
|
|
|
|
if (front->current_order.GetLoadType() & OLFB_NO_LOAD || HasBit(front->vehicle_flags, VF_STOP_LOADING)) continue;
|
|
|
|
|
|
|
|
|
|
|
|
/* This order has a refit, if this is the first vehicle part carrying cargo and the whole vehicle is empty, try refitting. */
|
|
|
|
/* This order has a refit, if this is the first vehicle part carrying cargo and the whole vehicle is empty, try refitting. */
|
|
|
|
if (front->current_order.IsRefit() && artic_part == 1) {
|
|
|
|
if (front->current_order.IsRefit() && artic_part == 1) {
|
|
|
@ -1763,6 +1764,9 @@ static void LoadUnloadVehicle(Vehicle *front)
|
|
|
|
ge = &st->goods[v->cargo_type];
|
|
|
|
ge = &st->goods[v->cargo_type];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Do not pick up goods when we have no-load set. */
|
|
|
|
|
|
|
|
if (GetLoadType(v) & OLFB_NO_LOAD) continue;
|
|
|
|
|
|
|
|
|
|
|
|
/* As we're loading here the following link can carry the full capacity of the vehicle. */
|
|
|
|
/* As we're loading here the following link can carry the full capacity of the vehicle. */
|
|
|
|
v->refit_cap = v->cargo_cap;
|
|
|
|
v->refit_cap = v->cargo_cap;
|
|
|
|
|
|
|
|
|
|
|
|