Fix get_planes() to abort at the escort prompt
This affects commands bomb, drop, fly, paradrop, recon and sweep. The failure to abort was harmless, because all callers get additional arguments, and abort then.
This commit is contained in:
parent
d3f644a37f
commit
648ea5900b
1 changed files with 4 additions and 1 deletions
|
@ -75,8 +75,11 @@ get_planes(struct nstr_item *ni_bomb, struct nstr_item *ni_esc,
|
||||||
if (!snxtitem(ni_bomb, EF_PLANE, input_bomb))
|
if (!snxtitem(ni_bomb, EF_PLANE, input_bomb))
|
||||||
return -1;
|
return -1;
|
||||||
if (!snxtitem(ni_esc, EF_PLANE,
|
if (!snxtitem(ni_esc, EF_PLANE,
|
||||||
getstarg(input_esc, "escort(s)? ", buf)))
|
getstarg(input_esc, "escort(s)? ", buf))) {
|
||||||
|
if (player->aborted)
|
||||||
|
return -1;
|
||||||
pr("No escorts...\n");
|
pr("No escorts...\n");
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue