(drop): A mining mission targeting land called pln_dropoff() instead
of pln_mine(). pln_dropoff() happens to do pretty much the right thing, but... (pln_mine): Refuse to mine land.
This commit is contained in:
parent
eb1134541a
commit
cc0c3e4f3f
2 changed files with 5 additions and 2 deletions
|
@ -135,8 +135,7 @@ drop(void)
|
|||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue