(landrepair): Allow land unit repairs in allied sectors
This commit is contained in:
parent
ec28000e34
commit
a5f8742b3f
1 changed files with 2 additions and 1 deletions
|
@ -240,7 +240,8 @@ landrepair(struct lndstr *land, struct natstr *np, int *bp, int etus)
|
||||||
/* land is ok; no repairs needed */
|
/* land is ok; no repairs needed */
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (sp->sct_own != land->lnd_own)
|
if ((sp->sct_own != land->lnd_own) &&
|
||||||
|
(getrel(getnatp(sp->sct_own), land->lnd_own) != ALLIED))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!player->simulation)
|
if (!player->simulation)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue