Fix mixed ASW patrols
A reconnaissance patrol (recon and sweep) uses sonar when ASW planes participate. ac_encounter() enabled sonar when P_A was in mission_flags. These get computed by pln_arm() and callers. However, they set P_A only when *all* planes were capable, including escorts. Fix by checking actual plane capabilities instead. Closes #1389451.
This commit is contained in:
parent
e3d4bb0080
commit
4ea1d3acff
4 changed files with 3 additions and 15 deletions
|
@ -881,10 +881,6 @@ mission_pln_arm(struct emp_qelem *list, coord x, coord y, int dist,
|
|||
if (!(plp->pcp->pl_flags & P_X))
|
||||
/* no stealth on this mission */
|
||||
mission_flags &= ~P_X;
|
||||
if (!(plp->pcp->pl_flags & P_A)) {
|
||||
/* no asw on this mission */
|
||||
mission_flags &= ~P_A;
|
||||
}
|
||||
if (!(plp->pcp->pl_flags & P_MINE)) {
|
||||
/* no asw on this mission */
|
||||
mission_flags &= ~P_MINE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue