]> git.pond.sub.org Git - empserver/blobdiff - src/lib/update/land.c
Use relations_with() for US==THEM || getrel(getnatp(US), THEM)
[empserver] / src / lib / update / land.c
index 6fedf64e2d2e28195a16b8c0a2818b1d6b8d7872..90d02e600092fe0fd9a817f5c410b75419538930 100644 (file)
@@ -224,8 +224,7 @@ landrepair(struct lndstr *land, struct natstr *np, struct bp *bp, int etus)
        /* land is ok; no repairs needed */
        return;
     }
-    if ((sp->sct_own != land->lnd_own) &&
-       (getrel(getnatp(sp->sct_own), land->lnd_own) != ALLIED))
+    if (relations_with(sp->sct_own, land->lnd_own) != ALLIED)
        return;
 
     if (!player->simulation)