]> git.pond.sub.org Git - empserver/commit
Fix starvation not to starve one more than it should
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 17 May 2008 06:50:56 +0000 (08:50 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 17 May 2008 06:50:56 +0000 (08:50 +0200)
commitb37ebbbde3d583578efd80df58598ce5827994d7
treee1632caf35763f05642e016e49c24e9de54cf0ce
parent9a7628f05b3783e87684c65d731660286bdc3fa6
Fix starvation not to starve one more than it should

Commit 109dad1b (v4.3.5) promised to round victim fractions down, but
got it wrong for odd population when exactly half of it rounded down
could be fed.  This could starve the last man on a boat or land unit.
Fix famine_victims().
src/lib/update/human.c