]> git.pond.sub.org Git - empserver/commitdiff
(perform_mission): Disqualify land units from performing
authorRon Koenderink <rkoenderink@yahoo.ca>
Sun, 12 Feb 2006 20:37:27 +0000 (20:37 +0000)
committerRon Koenderink <rkoenderink@yahoo.ca>
Sun, 12 Feb 2006 20:37:27 +0000 (20:37 +0000)
missions when they are on ship or a train.

src/lib/subs/mission.c

index 88f7fb6001b3c1f90d66f0890704a32c80990de4..5f8ccbc2264ef1add14b78f243bdee4b2e71a342 100644 (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;