No functional change, because the value of rel only matters when
sectp->sct_own != sp->shp_own, and then it's the same as before.
The new value of rel permits simplifying sectp->sct_own == sp->shp_own
|| rel >= FRIENDLY to just rel >= FRIENDLY.
if (!(sectp = getsectp(sp->shp_x, sp->shp_y)))
return 0; /* safety */
- rel = getrel(getnatp(sectp->sct_own), sp->shp_own);
+ rel = relations_with(sectp->sct_own, sp->shp_own);
/* loop through each field for that ship */
for (i = 0; i < TMAX; ++i) {
didsomething[i] = 1;
continue;
}
- if (sectp->sct_own == sp->shp_own || rel >= FRIENDLY)
+ if (rel >= FRIENDLY)
didsomething[i] = load_it(sp, sectp, i);
}