]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/drop.c
Simplify plane selection for drop, fly, recon and sweep
[empserver] / src / lib / commands / drop.c
index 308fa8e2273c566469d1241c62c64607eeb0f11a..3bcf2c79c50a30471d6a01e8120ffacb3e2783e9 100644 (file)
@@ -99,14 +99,10 @@ drop(void)
     /*
      * select planes within range
      */
-    pln_sel(&ni_bomb, &bomb_list, &ap_sect, ap_to_target,
-           2, wantflags, P_M | P_O);
-    if (QEMPTY(&bomb_list)) {
-       pr("No planes could be equipped for the mission.\n");
-       return RET_FAIL;
-    }
-    pln_sel(&ni_esc, &esc_list, &ap_sect, ap_to_target,
-           2, P_ESC | P_F, P_M | P_O);
+    pln_sel(&ni_bomb, &bomb_list, &ap_sect, ap_to_target, 2,
+           wantflags, P_M | P_O);
+    pln_sel(&ni_esc, &esc_list, &ap_sect, ap_to_target, 2,
+           P_ESC | P_F, P_M | P_O);
     /*
      * now arm and equip the bombers, transports, whatever.
      */