]> git.pond.sub.org Git - empserver/blobdiff - src/lib/update/produce.c
(produce, prod): Remove some code related to depletion that has no
[empserver] / src / lib / update / produce.c
index c2580b10a6759bb9512d38e3ad8b5e6776e1f0b7..5094ea144fc0b849f86edf5d0627f79bf47ef7ed 100644 (file)
@@ -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