(lnd_fortify): The previous revision could break under conditions that

currently don't occur.  Fix anyway.
This commit is contained in:
Markus Armbruster 2006-06-17 14:58:09 +00:00
parent 2673a258fe
commit 602b2a07cb

View file

@ -1322,6 +1322,9 @@ lnd_fortify(struct lndstr *lp, int mob)
return 0; return 0;
mob_used = MIN(lp->lnd_mobil, mob); mob_used = MIN(lp->lnd_mobil, mob);
if (mob_used < 0)
return 0;
mult = has_helpful_engineer(lp->lnd_x, lp->lnd_y, lp->lnd_own) mult = has_helpful_engineer(lp->lnd_x, lp->lnd_y, lp->lnd_own)
? 1.5 : 1.0; ? 1.5 : 1.0;