(lnd_hit_mine): Remove silly use of double. Rounds fractional damage

to engineers down instead of up.

(retreat_land1): Failed to reduce mine damage to engineers.
This commit is contained in:
Markus Armbruster 2006-06-15 18:58:47 +00:00
parent 5dcd0dcd86
commit ded3ca41ef
2 changed files with 6 additions and 5 deletions

View file

@ -500,6 +500,8 @@ retreat_land1(struct lndstr *lp, char code, int orig)
xyas(newx, newy, lp->lnd_own));
nreport(lp->lnd_own, N_LHIT_MINE, 0, 1);
m = MINE_LDAMAGE();
if (lcp->l_flags & L_ENGINEER)
m /= 2;
landdamage(lp, m);
mines--;
sect.sct_mines = mines;