(pln_equip): Do not abandon sector for paradrop, drop or fly.
Closes #982226
This commit is contained in:
parent
1de48e53da
commit
9113969208
1 changed files with 3 additions and 1 deletions
|
@ -608,6 +608,7 @@ pln_equip(struct plist *plp, struct ichrstr *ip, int flags, s_char mission)
|
|||
int rval;
|
||||
short *item;
|
||||
int own;
|
||||
int abandon_needed;
|
||||
|
||||
pp = &plp->plane;
|
||||
pcp = plp->pcp;
|
||||
|
@ -694,7 +695,8 @@ pln_equip(struct plist *plp, struct ichrstr *ip, int flags, s_char mission)
|
|||
plp->plane.pln_y,
|
||||
I_SHELL, needed);
|
||||
#endif
|
||||
if (item[itype] < needed) {
|
||||
abandon_needed = would_abandon(§, itype, needed, NULL);
|
||||
if (item[itype] < needed + abandon_needed) {
|
||||
pr("Not enough %s for %s\n", ichr[itype].i_name, prplane(pp));
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue