Check the true load instead of the ip parameter. Makes a difference
only when callers pass a bogus ip that isn't actually used. Happens
for escorts, but then the call can only be reached for deities,
because for mortals the transports fail before the escorts.
item = sect.sct_item;
own = sect.sct_oldown;
}
- if (ip) {
- if (ip->i_uid == I_CIVIL) {
- if (pp->pln_own != own) {
- pr("You don't control those civilians!\n");
- return -1;
- }
- }
- }
if (pcp->pl_fuel > item[I_PETROL]) {
pr("%s not enough petrol there!\n", prplane(pp));
return -1;
pr("%s can't contribute to mission\n", prplane(pp));
return -1;
}
+ if (itype == I_CIVIL && pp->pln_own != own) {
+ pr("You don't control those civilians!\n");
+ return -1;
+ }
if (itype != I_NONE) {
#if 0
/* Supply is broken somewhere, so don't use it for now */