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:
Markus Armbruster 2008-09-20 13:21:48 -04:00
parent e3d4bb0080
commit 4ea1d3acff
4 changed files with 3 additions and 15 deletions

View file

@ -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)) {