]> git.pond.sub.org Git - empserver/commit
Don't make more babies than food permits
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 30 Mar 2008 16:28:07 +0000 (18:28 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 1 Apr 2008 18:05:10 +0000 (20:05 +0200)
commit1f9e884525a2e7c0cc75472f3a7ece86b32f57db
tree960e0c44707d51670408e4a972ff3fecda969f4c
parentfc6f1da568959eef5e4b3b5975157d01d782ccca
Don't make more babies than food permits

babies() rounded the maximum number of babies permitted by food.  When
this rounded up, grow_people() could use more food than available, and
the sector's food could become negative.  Fix by always rounding down.
src/lib/update/human.c