march attack assault: Don't sweep with zero mobility

Require positive mobility for sweeping mines, just like ships do.
Screwed up when land units were added in Chainsaw 3.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2014-12-29 17:32:40 +01:00
parent 1702349e3d
commit 7787cae780

View file

@ -600,7 +600,7 @@ lnd_sweep(struct emp_qelem *land_list, int explicit, int takemob,
prland(&llp->unit.land)); prland(&llp->unit.land));
continue; continue;
} }
if (takemob && llp->mobil < 0.0) { if (takemob && llp->mobil <= 0.0) {
if (explicit) if (explicit)
lnd_stays(actor, "is out of mobility", llp); lnd_stays(actor, "is out of mobility", llp);
continue; continue;