switch (FEAT_TRAINS, SELF, ${vehicle.id}_switch_cargo_capacity_by_cargo_${param_value}, cargo_classes) { bitmask(CC_PASSENGERS): return ${vehicle.capacities_pax[param_value]}; bitmask(CC_MAIL): return ${vehicle.capacities_mail[param_value]}; return 100; }