File diff r12373:30da669f3dfa → r12374:50d157b51c2c
src/vehicle.cpp
Show inline comments
 
@@ -478,7 +478,7 @@ uint CountVehiclesInChain(const Vehicle 
 
bool Vehicle::IsEngineCountable() const
 
{
 
	switch (this->type) {
 
		case VEH_AIRCRAFT: return IsNormalAircraft(this); // don't count plane shadows and helicopter rotors
 
		case VEH_AIRCRAFT: return Aircraft::From(this)->IsNormalAircraft(); // don't count plane shadows and helicopter rotors
 
		case VEH_TRAIN:
 
			return !Train::From(this)->IsArticulatedPart() && // tenders and other articulated parts
 
					!Train::From(this)->IsRearDualheaded(); // rear parts of multiheaded engines