(babies): Err, the maxpop case wasn't an optimization... Without

that, we get negative babies, which leads to negative avail and baby
food (cannibalism?) in grow_people().  Restore it.
This commit is contained in:
Markus Armbruster 2005-10-11 20:10:15 +00:00
parent 4d0a17c882
commit 19d1830bc4

View file

@ -284,6 +284,9 @@ babies(int adults, int etu, double brate, int food, int maxpop)
{
int new_birth, new_food, new;
if (adults >= maxpop)
return 0;
new_birth = roundavg(brate * etu * adults);
if (opt_NOFOOD)
new_food = new_birth;