Eliminate a few pointless relations variables
Just to make the next few commits easier to review.
This commit is contained in:
parent
bb5cd07ce5
commit
7ebbe7da4c
5 changed files with 13 additions and 25 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue