New get_planes(), factored out of plane flying commands

No functional change.
This commit is contained in:
Markus Armbruster 2008-07-26 14:58:44 -04:00
parent 3eb58312b3
commit d3f644a37f
7 changed files with 30 additions and 20 deletions

View file

@ -57,11 +57,8 @@ reco(void)
char buf[1024];
wantflags = 0;
if (!snxtitem(&ni_bomb, EF_PLANE, player->argp[1]))
if (get_planes(&ni_bomb, &ni_esc, player->argp[1], player->argp[2]) < 0)
return RET_SYN;
if (!snxtitem(&ni_esc, EF_PLANE,
getstarg(player->argp[2], "escort(s)? ", buf)))
pr("No escorts...\n");
if (!get_assembly_point(player->argp[3], &ap_sect, buf))
return RET_SYN;
ax = ap_sect.sct_x;