]> git.pond.sub.org Git - empserver/commit
convert shoot: Fix to ignore foreign and embarked land units
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 19 Sep 2016 18:27:19 +0000 (20:27 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 6 Aug 2017 18:09:20 +0000 (20:09 +0200)
commit986df4e2ab27e20598a2d5ff41dedb3721161028
treeb8f59d7dd3c9b5e565af0eac7004b08bb8daab82
parent04dddb6bd13cd09c9f466947c4658651bf6c5026
convert shoot: Fix to ignore foreign and embarked land units

Convert and shoot put land units to work regardless of ownership.
Clearly wrong for foreign, non-allied land units trapped in the
sector.

They also happily use land units loaded on ships or land units, unlike
most other commands.  Questionable, because unload need not be
possible.

Checking for ownership and load status was neglected when land units
were added in Chainsaw 3.  Non-allied land units became possible in
4.0.0.

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

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