(lnd_fortify): Round mobility fractions up always, not just to 1.

Simplify.

(fort): Don't claim land unit can't be fortified when amount argument
is zero.
This commit is contained in:
Markus Armbruster 2006-06-17 08:42:23 +00:00
parent 07de857b88
commit ca6c16357f
2 changed files with 15 additions and 34 deletions

View file

@ -82,9 +82,9 @@ fort(void)
use all mobility down to leaving 67 left. */
if (hard_amt < 0) {
hard_amt = land.lnd_mobil + hard_amt;
if (hard_amt < 0)
continue;
}
if (hard_amt <= 0)
continue;
if (lnd_fortify (&land, hard_amt) <= 0) {
pr("%s can't be fortified%s\n", prland(&land),