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:
Markus Armbruster 2008-07-26 15:12:47 -04:00
parent d3f644a37f
commit 648ea5900b

View file

@ -75,8 +75,11 @@ get_planes(struct nstr_item *ni_bomb, struct nstr_item *ni_esc,
if (!snxtitem(ni_bomb, EF_PLANE, input_bomb))
return -1;
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");
}
return 0;
}