262
264
v->cargo_cap = rvi->capacity;
264
266
AddArticulatedParts(vl, VEH_ROAD);
266
269
/* Call various callbacks after the whole consist has been constructed */
267
270
for (Vehicle *u = v; u != NULL; u = u->Next()) {
268
271
u->u.road.cached_veh_length = GetRoadVehLength(u);
269
272
/* Cargo capacity is zero if and only if the vehicle cannot carry anything */
270
273
if (u->cargo_cap != 0) u->cargo_cap = GetVehicleProperty(u, 0x0F, u->cargo_cap);