(prod): The production limit due to work was rounded incorrectly.

This commit is contained in:
Ron Koenderink 2004-04-07 22:06:48 +00:00
parent 83478bd79e
commit 5a0216893f

View file

@ -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,