From 5a0216893fabcf507693adddf537a08321afd896 Mon Sep 17 00:00:00 2001 From: Ron Koenderink Date: Wed, 7 Apr 2004 22:06:48 +0000 Subject: [PATCH] (prod): The production limit due to work was rounded incorrectly. --- 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 bd9f285c..38a52b72 100644 --- a/src/lib/commands/prod.c +++ b/src/lib/commands/prod.c @@ -270,7 +270,7 @@ prod(void) * is production limited by resources or * workforce? */ - max = (int)(work * effic / (double)totcomp) + 0.5; + max = (int)((work * effic / (double)totcomp) + 0.5); act = min(used, max); /* * some things are easier to make.. food,