]> git.pond.sub.org Git - empserver/commit
march: Fix 'm' not to leave engineer without mobility behind
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 29 Dec 2014 16:36:36 +0000 (17:36 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 28 Feb 2015 15:13:15 +0000 (16:13 +0100)
commitb0221b9d2f876611c3a18557d71874ad84f5c9a9
tree1c194c1afc753a797709521b15953ca60820b321
parent7787cae7804c46d2234b934e2b03fed0e956cab6
march: Fix 'm' not to leave engineer without mobility behind

When lnd_sweep() rejects an engineer for want of mobility, it removes
it from the list of units.

Can happen only when sweeping for march sub-command 'm'.  Any engineer
without mobility is dropped from the march immediately.  Broken in
Empire 2.

Fix lnd_sweep() to handle this case just like the others, and like
shp_sweep(): report and continue with the next list member.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/subs/lndsub.c
tests/navi-march/02-march-1
tests/navi-march/journal.log