to engineers down instead of up.
(retreat_land1): Failed to reduce mine damage to engineers.
static int
lnd_hit_mine(struct lndstr *lp, struct lchrstr *lcp)
{
- double m;
+ int m;
mpr(lp->lnd_own, "Blammo! Landmines detected in %s! ",
xyas(lp->lnd_x, lp->lnd_y, lp->lnd_own));
m = MINE_LDAMAGE();
if (lcp->l_flags & L_ENGINEER)
- m /= 2.0;
+ m /= 2;
- landdamage(lp, ldround(m, 1));
-
- return (int)m;
+ landdamage(lp, m);
+ return m;
}
double
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;