(lnd_fortify): Do not fortify units embarked on ships or land units.
This commit is contained in:
parent
a52a09be1f
commit
4b321add52
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue