of pln_mine(). pln_dropoff() happens to do pretty much the right
thing, but...
(pln_mine): Refuse to mine land.
pr("No planes got through fighter defenses\n");
} else {
getsect(tx, ty, &target);
- if (target.sct_type == SCT_WATER && (mission_flags & P_MINE)
- && ip->i_vtype == I_SHELL)
+ if (wantflags & P_MINE)
pln_mine(&bomb_list, &target);
else
pln_dropoff(&bomb_list, ip, tx, ty, &target, EF_SECTOR);
}
if (amt > 0) {
+ if (sectp->sct_type != SCT_WATER) {
+ pr("Your seamines have no effect here.\n");
+ return;
+ }
sectp->sct_mines = min(sectp->sct_mines + amt, MINES_MAX);
pr("%d mines laid in %s.\n", amt,
xyas(sectp->sct_x, sectp->sct_y, player->cnum));