(lnd_fortify): The previous revision could break under conditions that
currently don't occur. Fix anyway.
This commit is contained in:
parent
2673a258fe
commit
602b2a07cb
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue