Eliminate a few pointless relations variables

Just to make the next few commits easier to review.
This commit is contained in:
Markus Armbruster 2011-01-29 13:09:26 +01:00
parent bb5cd07ce5
commit 7ebbe7da4c
5 changed files with 13 additions and 25 deletions

View file

@ -263,15 +263,12 @@ shiprepair(struct shpstr *ship, struct natstr *np, struct bp *bp, int etus)
int w_p_eff;
int mult;
int mvec[I_MAX + 1];
int rel;
mp = &mchr[(int)ship->shp_type];
sp = getsectp(ship->shp_x, ship->shp_y);
if ((sp->sct_own != ship->shp_own) && (sp->sct_own != 0)) {
rel = getrel(getnatp(sp->sct_own), ship->shp_own);
if (rel < FRIENDLY)
if (getrel(getnatp(sp->sct_own), ship->shp_own) < FRIENDLY)
return;
}