File diff r20251:8c2b509af318 → r20252:76a6f1c78ce7
src/articulated_vehicles.cpp
Show inline comments
 
@@ -352,12 +352,13 @@ void AddArticulatedParts(Vehicle *first)
 
					t->cargo_type = e_artic->GetDefaultCargoType();
 
					t->cargo_cap = e_artic->u.rail.capacity;  // Callback 36 is called when the consist is finished
 
				} else {
 
					t->cargo_type = front->cargo_type; // Needed for livery selection
 
					t->cargo_cap = 0;
 
				}
 
				t->refit_cap = 0;
 

	
 
				t->SetArticulatedPart();
 
				break;
 
			}
 

	
 
			case VEH_ROAD: {
 
@@ -378,12 +379,13 @@ void AddArticulatedParts(Vehicle *first)
 
					rv->cargo_type = e_artic->GetDefaultCargoType();
 
					rv->cargo_cap = e_artic->u.road.capacity;  // Callback 36 is called when the consist is finished
 
				} else {
 
					rv->cargo_type = front->cargo_type; // Needed for livery selection
 
					rv->cargo_cap = 0;
 
				}
 
				rv->refit_cap = 0;
 

	
 
				rv->SetArticulatedPart();
 
				break;
 
			}
 
		}