effect and makes no sense.
int cost;
int i;
int max; /* production w/infinate materials */
int cost;
int i;
int max; /* production w/infinate materials */
int nsect;
double take;
double mtake;
int nsect;
double take;
double mtake;
unit_work++;
resource = ((s_char *)§) + pp->p_nrndx;
p_e = (*resource * p_e) / 100.0;
unit_work++;
resource = ((s_char *)§) + pp->p_nrndx;
p_e = (*resource * p_e) / 100.0;
- if (pp->p_nrdep > 0) {
- maxtake = (*resource * 100.0) / pp->p_nrdep;
- if (p_e > maxtake)
- p_e = maxtake;
- }
int output;
int actual;
int unit_work;
int output;
int actual;
int unit_work;
int item;
int worker_limit;
int material_limit;
int item;
int worker_limit;
int material_limit;
unit_work++;
resource = ((s_char *)sp) + product->p_nrndx;
p_e = (*resource * p_e) / 100.0;
unit_work++;
resource = ((s_char *)sp) + product->p_nrndx;
p_e = (*resource * p_e) / 100.0;
- if (product->p_nrdep > 0) {
- /* XXX this looks way wrong */
- depend = (*resource * 100.0) / product->p_nrdep;
- if (p_e > depend)
- p_e = depend;
- }
}
/*
* determine number that can be made with
}
/*
* determine number that can be made with