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
|
@ -99,11 +99,8 @@ bomb(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");
|
||||
p = getstarg(player->argp[3], "pinpoint, or strategic? ", buf);
|
||||
if (!p || !*p)
|
||||
return RET_SYN;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue