(perform_mission): Disqualify land units from performing

missions when they are on ship or a train.
This commit is contained in:
Ron Koenderink 2006-02-12 20:37:27 +00:00
parent 86a0a43960
commit eca40469e7

View file

@ -477,6 +477,9 @@ perform_mission(coord x, coord y, natid victim, struct emp_qelem *list,
if (md > (lp->lnd_frg / 2))
continue;
if ((lp->lnd_ship != -1) || (lp->lnd_land != -1))
continue;
if (lnd_getmil(lp) < 1)
continue;