references to use I_NONE instead of zero. Zero has been invalid since
item.h rev. 1.12, and was questionable style before.
item[I_PETROL] -= pcp->pl_fuel;
rval = 0;
if (!(flags & P_F)) {
- itype = 0;
+ itype = I_NONE;
needed = 0;
switch (mission) {
case 's':
default:
break;
}
- if (rval < 0 || (itype && needed <= 0)) {
+ if (rval < 0 || (itype != I_NONE && needed <= 0)) {
return -1;
}
if (item[itype] < needed && (itype == I_SHELL))
item[I_PETROL] -= pcp->pl_fuel;
rval = 0;
if ((flags & P_F) == 0) {
- itype = 0;
+ itype = I_NONE;
needed = 0;
switch (mission) {
case 's':
default:
break;
}
- if (rval < 0 || (itype && needed <= 0)) {
+ if (rval < 0 || (itype != I_NONE && needed <= 0)) {
pr("%s can't contribute to mission\n", prplane(pp));
return -1;
}
pchr[j].p_nlmin,
pchr[j].p_nllag,
pchr[j].p_effic, pchr[j].p_cost, pchr[j].p_nrdep,
- pchr[j].p_type ? ichr[pchr[j].p_type].i_mnem : ' ');
+ pchr[j].p_type != I_NONE ? ichr[pchr[j].p_type].i_mnem : ' ');
pr("\n");
}