empserver/tests/navi-march
Markus Armbruster 520cfea05d navigate march: Fix "same mob type" and "not on sale" checks
Unlike the other "may move" conditions, "same mobility type
(MOB_MARCH, MOB_RAIL) as leader" and "not on sale" are only checked
when collecting ships and land units.

The former breaks when a deity unwisely edits a land unit's type while
it is being marched.  Messed up when the check was added in commit
36e41e5 (v4.3.7).  However, editing has become possible only recently,
in commit 6b0b6f1.

The latter would break if a ship could be put on the market while it
is being navigated, but that's not possible, because only the owner
can navigate (see also commit 8c502d4), and only the owner can sell.
Same for land units.  Messed up in 4.0.9.  Clean it up anyway.  Bonus:
nicer error message, even spelled correctly.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2015-03-02 08:20:47 +01:00
..
01-navigate-1 navigate: Don't disclose whether unfriendly canal is navigable 2015-02-28 16:13:15 +01:00
02-march-1 march attack assault: Hit mines like ships do 2015-02-28 16:13:15 +01:00
99-POGO tests/navi-march: New; exercises navigate and march command 2015-02-01 16:53:01 +01:00
final.xdump navigate march: Wipe mission and retreat orders less eagerly 2015-03-02 08:20:47 +01:00
journal.log navigate march: Fix "same mob type" and "not on sale" checks 2015-03-02 08:20:47 +01:00
server.log tests/navi-march: New; exercises navigate and march command 2015-02-01 16:53:01 +01:00
setup-POGO navigate: Require all ships to start in the same sector 2015-02-28 16:13:14 +01:00