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:
parent
1702349e3d
commit
7787cae780
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue