]> git.pond.sub.org Git - empserver/commit
update: Treat sanctuaries more consistently
authorMarkus Armbruster <armbru@pond.sub.org>
Fri, 24 Jun 2016 17:18:21 +0000 (19:18 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 6 Aug 2017 18:08:30 +0000 (20:08 +0200)
commita97ac7a40150d9bb839dbc343bad58cfbc5b4b68
tree498ac3bfe62c11ff30765c828b79d3612ac6b012
parente15e7f6bf855d17c2dcebc34a1e675581f71df72
update: Treat sanctuaries more consistently

Land unit maintenance and building ignore land units in sanctuary
sectors.  Leftovers from undocumented compile-time option START_UNITS,
which is gone since commit dab1f0b, v4.3.0.  Feeding, paying military
and fallout don't ignore them.  Change maintenance and building to
match.

Sector preparation (except for the fallout part) and production ignore
even non-sanctuary sectors owned by nations in sanctuary.  Fallout,
delivery, distribution and mobility growth don't check the sector
owner's status.  Change preparation and production to ignore just
sanctuary sectors, without checking the sector owner's status.  Except
don't bother for most of fallout, as we already avoid spreading
fallout into sanctuaries; still ignore sanctuaries when doing fallout
damage mostly for completeness.

Delivery and distribution ignore unowned sectors.  Ignore sanctuaries,
too.

Feeding and mobility growth ignore sanctuaries.  Ignore sea, too.

None of this should matter in sane game states.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/update/finish.c
src/lib/update/human.c
src/lib/update/land.c
src/lib/update/main.c
src/lib/update/mobility.c
src/lib/update/prepare.c
src/lib/update/sect.c