From 8718a9428a9e7de3fac864a520aac6c88f673259 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Mon, 7 Sep 2009 15:18:17 -0400 Subject: [PATCH] Fix prod() to limit level production to resource contents This could make production command mispredict resource-depleting level production. Stock game is not affected. In fact, such a product would be highly unusual. --- src/lib/commands/prod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/commands/prod.c b/src/lib/commands/prod.c index 2b2b6519..f959f377 100644 --- a/src/lib/commands/prod.c +++ b/src/lib/commands/prod.c @@ -247,7 +247,7 @@ prod(void) * workforce? */ max = (int)(work * p_e / (double)unit_work + 0.5); - if (resource && pp->p_nrdep != 0 && vtype != I_NONE) { + if (resource && pp->p_nrdep != 0) { if (*resource * 100 < pp->p_nrdep * max) max = *resource * 100 / pp->p_nrdep; }