Simplify wantflags calculation in bomb(), fly(), para(), reco()

This commit is contained in:
Markus Armbruster 2009-09-27 11:10:08 -04:00
parent df1ca95a2a
commit b2e6663f39
4 changed files with 5 additions and 13 deletions

View file

@ -100,10 +100,8 @@ fly(void)
pr("No planes could be equipped for the mission.\n");
return RET_FAIL;
}
wantflags |= P_F;
wantflags |= P_ESC;
pln_sel(&ni_esc, &esc_list, &ap_sect, ap_to_target,
1, wantflags, P_M | P_O);
1, wantflags | P_ESC | P_F, P_M | P_O);
if (cno >= 0 && !pln_oneway_to_carrier_ok(&bomb_list, &esc_list, cno)) {
pr("Not enough room on ship #%d!\n", cno);
return RET_FAIL;