From 79e94bf9d147c626c25618069d47eb32d8d44f8e Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Fri, 14 May 2004 17:26:53 +0000 Subject: [PATCH] (produce, prod): Remove some code related to depletion that has no effect and makes no sense. --- src/lib/commands/prod.c | 6 ------ src/lib/update/produce.c | 7 ------- 2 files changed, 13 deletions(-) diff --git a/src/lib/commands/prod.c b/src/lib/commands/prod.c index 8e676bc8c..7cfd86c64 100644 --- a/src/lib/commands/prod.c +++ b/src/lib/commands/prod.c @@ -80,7 +80,6 @@ prod(void) int cost; int i; int max; /* production w/infinate materials */ - double maxtake; int nsect; double take; double mtake; @@ -227,11 +226,6 @@ prod(void) 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; - } } /* * production effic. diff --git a/src/lib/update/produce.c b/src/lib/update/produce.c index c2580b10a..5094ea144 100644 --- a/src/lib/update/produce.c +++ b/src/lib/update/produce.c @@ -64,7 +64,6 @@ produce(struct natstr *np, struct sctstr *sp, short *vec, int work, int output; int actual; int unit_work; - double depend; int item; int worker_limit; int material_limit; @@ -89,12 +88,6 @@ produce(struct natstr *np, struct sctstr *sp, short *vec, int work, 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 -- 2.43.0