]> git.pond.sub.org Git - empserver/commit
update: Delivery abandons sectors incorrectly, fix it not to
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 17 Jul 2016 08:55:31 +0000 (10:55 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 6 Aug 2017 18:09:17 +0000 (20:09 +0200)
commit9a2e1ccd6c24093d1e7dd1192f447d0f1d6b9796
treec3e30c51aede942316351142655e87b78edd9b2a
parent43a0a4a451e31cd8ca02e2ca573abd9b7fde9536
update: Delivery abandons sectors incorrectly, fix it not to

Deliver fails to abandon sectors when it ships out all civilians and
military.  The sector remains owned until the next non-update sector
update abandons it.  Has always been broken.

Distribution had the same bug until commit d0f3847 (v4.3.20) fixed it.
Fix it the same way for delivery: adjust the amount moved to avoid
moving out the last civilian, or the last military if there are no
civilians.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
info/deliver.t
src/lib/update/deliver.c