(perform_mission): Disqualify land units from performing
missions when they are on ship or a train.
This commit is contained in:
parent
86a0a43960
commit
eca40469e7
1 changed files with 3 additions and 0 deletions
|
@ -477,6 +477,9 @@ perform_mission(coord x, coord y, natid victim, struct emp_qelem *list,
|
||||||
if (md > (lp->lnd_frg / 2))
|
if (md > (lp->lnd_frg / 2))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if ((lp->lnd_ship != -1) || (lp->lnd_land != -1))
|
||||||
|
continue;
|
||||||
|
|
||||||
if (lnd_getmil(lp) < 1)
|
if (lnd_getmil(lp) < 1)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue