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
|
@ -101,7 +101,6 @@ reco(void)
|
|||
*/
|
||||
mission_flags |= P_X; /* stealth (shhh) */
|
||||
mission_flags |= P_H; /* gets turned off if not all choppers */
|
||||
mission_flags |= P_A;
|
||||
mission_flags = pln_arm(&bomb_list, ap_to_target, 'r',
|
||||
0, P_S | P_I, mission_flags);
|
||||
if (QEMPTY(&bomb_list)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue