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

@ -60,7 +60,6 @@ atta(void)
int last, n;
char *p;
char buf[1024];
int rel;
att_combat_init(def, EF_SECTOR);
/*
@ -95,8 +94,8 @@ atta(void)
newx = def->x + diroff[n + 1][0];
newy = def->y + diroff[n + 1][1];
getsect(newx, newy, &sect); /* incase cross world boundary */
rel = getrel(getnatp(sect.sct_own), player->cnum);
if (!player->owner && rel != ALLIED)
if (!player->owner
&& getrel(getnatp(sect.sct_own), player->cnum) != ALLIED)
continue;
att_combat_init(&off[++last], EF_SECTOR);
off[last].x = sect.sct_x;