empserver/src
Markus Armbruster c9fc05ae5b march: Don't scatter land units on crossing border
When attempting to enter a sector with a land unit that can't go there
while the marching land units are all in the same sector, march stops
and prompts without removing the incapable land unit from the group.
If another land unit has already entered the sector, the group becomes
scattered.

This can happen when marching a mixed group of spies and non-spies
into a non-allied sector.  Same for marching a mixed group of trains
and non-trains into a sector without rail, except such groups have
been disallowed since commit 36e41e5 (v4.3.7).  Both screwed up when
spies and trains were added in 4.0.0

Remove the incapable land unit from the group when another land unit
can enter the sector.  This avoids scattering land units.

Don't remove incapable land units when no land unit can enter the
sector.  Without this, march would remove everyone and end then.

It can also happen when sectors or land units change while we're
sitting at the "Do you really want to abandon X,Y" prompt.  I'm going
to fix that differently.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2015-02-28 16:12:54 +01:00
..
client Update copyright notice 2014-01-02 14:33:48 +01:00
lib march: Don't scatter land units on crossing border 2015-02-28 16:12:54 +01:00
scripts New make target check 2013-05-08 06:55:11 +02:00
server Clean up superfluous includes 2014-02-16 13:19:26 +01:00
util empdump: Omit redundant data from export, new -c includes it 2015-02-01 16:53:00 +01:00