New get_planes(), factored out of plane flying commands
No functional change.
This commit is contained in:
parent
3eb58312b3
commit
d3f644a37f
7 changed files with 30 additions and 20 deletions
|
@ -60,11 +60,8 @@ fly(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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue