]> git.pond.sub.org Git - empserver/commitdiff
(lnd_fortify): Do not fortify units embarked on ships or land units.
authorMarkus Armbruster <armbru@pond.sub.org>
Thu, 29 Jan 2004 13:34:15 +0000 (13:34 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Thu, 29 Jan 2004 13:34:15 +0000 (13:34 +0000)
src/lib/subs/lndsub.c

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