(landrepair): Allow land unit repairs in allied sectors

This commit is contained in:
Ron Koenderink 2007-01-04 13:22:06 +00:00
parent ec28000e34
commit a5f8742b3f

View file

@ -240,7 +240,8 @@ landrepair(struct lndstr *land, struct natstr *np, int *bp, int etus)
/* land is ok; no repairs needed */
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;
if (!player->simulation)