(produce, prod): Remove some code related to depletion that has no
effect and makes no sense.
This commit is contained in:
parent
6d3f24f9d7
commit
79e94bf9d1
2 changed files with 0 additions and 13 deletions
|
@ -80,7 +80,6 @@ prod(void)
|
||||||
int cost;
|
int cost;
|
||||||
int i;
|
int i;
|
||||||
int max; /* production w/infinate materials */
|
int max; /* production w/infinate materials */
|
||||||
double maxtake;
|
|
||||||
int nsect;
|
int nsect;
|
||||||
double take;
|
double take;
|
||||||
double mtake;
|
double mtake;
|
||||||
|
@ -227,11 +226,6 @@ prod(void)
|
||||||
unit_work++;
|
unit_work++;
|
||||||
resource = ((s_char *)§) + pp->p_nrndx;
|
resource = ((s_char *)§) + pp->p_nrndx;
|
||||||
p_e = (*resource * p_e) / 100.0;
|
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* production effic.
|
* production effic.
|
||||||
|
|
|
@ -64,7 +64,6 @@ produce(struct natstr *np, struct sctstr *sp, short *vec, int work,
|
||||||
int output;
|
int output;
|
||||||
int actual;
|
int actual;
|
||||||
int unit_work;
|
int unit_work;
|
||||||
double depend;
|
|
||||||
int item;
|
int item;
|
||||||
int worker_limit;
|
int worker_limit;
|
||||||
int material_limit;
|
int material_limit;
|
||||||
|
@ -89,12 +88,6 @@ produce(struct natstr *np, struct sctstr *sp, short *vec, int work,
|
||||||
unit_work++;
|
unit_work++;
|
||||||
resource = ((s_char *)sp) + product->p_nrndx;
|
resource = ((s_char *)sp) + product->p_nrndx;
|
||||||
p_e = (*resource * p_e) / 100.0;
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue