(lnd_fortify): Do not fortify units embarked on ships or land units.

This commit is contained in:
Markus Armbruster 2004-01-29 13:34:15 +00:00
parent a52a09be1f
commit 4b321add52

View file

@ -1364,6 +1364,9 @@ lnd_fortify (struct lndstr *lp, int hard_amt)
int mob_used; int mob_used;
int eng; int eng;
if ((lp->lnd_ship >= 0) || lp->lnd_land >= 0)
return 0;
hard_amt = min(lp->lnd_mobil, hard_amt); hard_amt = min(lp->lnd_mobil, hard_amt);
if ((lp->lnd_harden + hard_amt) > land_mob_max) if ((lp->lnd_harden + hard_amt) > land_mob_max)