/* Try to find out if auto-refitting would succeed. In case the refit is allowed,
/* Try to find out if auto-refitting would succeed. In case the refit is allowed,
*thereturnedrefitcapacitywillbegreaterthanzero.*/
*thereturnedrefitcapacitywillbegreaterthanzero.*/
DoCommand(v_start->tile,v_start->index,cid|1U<<6|0xFF<<8|1U<<16,DC_QUERY_COST,GetCmdRefitVeh(v_start));// Auto-refit and only this vehicle including artic parts.
DoCommand(v_start->tile,v_start->index,cid|1U<<24|0xFF<<8|1U<<16,DC_QUERY_COST,GetCmdRefitVeh(v_start));// Auto-refit and only this vehicle including artic parts.
/* Try to balance different loadable cargoes between parts of the consist, so that
/* Try to balance different loadable cargoes between parts of the consist, so that
CommandCostcost=DoCommand(v_start->tile,v_start->index,new_cid|1U<<6|0xFF<<8|1U<<16,DC_EXEC,GetCmdRefitVeh(v_start));// Auto-refit and only this vehicle including artic parts.
CommandCostcost=DoCommand(v_start->tile,v_start->index,new_cid|1U<<24|0xFF<<8|1U<<16,DC_EXEC,GetCmdRefitVeh(v_start));// Auto-refit and only this vehicle including artic parts.