]> git.pond.sub.org Git - empserver/commit
subs/control: Fix to ignore embarked land units
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 19 Sep 2016 18:35:30 +0000 (20:35 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 6 Aug 2017 18:09:20 +0000 (20:09 +0200)
commit19656b892b86a1de4221defa1b4701134f68e503
treee23cf9c858fa754633ba6c56f60450741b9161eb
parent986df4e2ab27e20598a2d5ff41dedb3721161028
subs/control: Fix to ignore embarked land units

Moving stuff out of an occupied sector generally requires "military
control", i.e. you need at least one military for every ten civilians.
Military in land units count.  Even when the land unit is loaded on a
ship or land unit.  Questionable, because unload need not be possible.

Checking whether unload would be possible is not worth the trouble
here, simply ignore embarked land units.

This affects commands move, explore, sell, set and transport, as well
as the update's distribution and delivery.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/subs/control.c