empserver/tests
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
..
actofgod sail: Remove option SAIL 2015-02-28 16:11:28 +01:00
bridgefall sail: Remove option SAIL 2015-02-28 16:11:28 +01:00
build sail: Remove option SAIL 2015-02-28 16:11:28 +01:00
empdump xundump: Polish error messages 2015-02-01 16:53:00 +01:00
fairland sail: Remove option SAIL 2015-02-28 16:11:28 +01:00
files sail: Remove option SAIL 2015-02-28 16:11:28 +01:00
fire sail: Remove option SAIL 2015-02-28 16:11:28 +01:00
info tests/info: New; checks info and code agree on commands 2014-01-06 20:50:06 +01:00
navi-march march: Don't scatter land units on crossing border 2015-02-28 16:12:54 +01:00
retreat sail: Remove option SAIL 2015-02-28 16:11:28 +01:00
smoke sail: Remove option SAIL 2015-02-28 16:11:28 +01:00
actofgod-test tests: Define and use some abbreviations 2015-02-01 16:52:59 +01:00
bridgefall-test tests: Define and use some abbreviations 2015-02-01 16:52:59 +01:00
build-test tests: Define and use some abbreviations 2015-02-01 16:52:59 +01:00
empdump-test tests/empdump: New; exercising the empdump utility 2015-02-01 16:52:59 +01:00
fairland-test tests/files tests/fairland: Check stderr and exit status 2015-02-01 16:52:59 +01:00
files-test tests/files tests/fairland: Check stderr and exit status 2015-02-01 16:52:59 +01:00
fire-test tests: Define and use some abbreviations 2015-02-01 16:52:59 +01:00
info-test tests: Define and use some abbreviations 2015-02-01 16:52:59 +01:00
navi-march-test tests/navi-march: New; exercises navigate and march command 2015-02-01 16:53:01 +01:00
normalize.pl tests: Fix normalization of nat_timeused in prompt in journal 2014-01-19 10:09:16 +01:00
retreat-test tests: Define and use some abbreviations 2015-02-01 16:52:59 +01:00
smoke-test tests: Define and use some abbreviations 2015-02-01 16:52:59 +01:00
test-common.sh tests: New helper customize 2015-02-01 16:53:00 +01:00