]> git.pond.sub.org Git - empserver/blobdiff - src/lib/update/ship.c
Use relations_with() for US==THEM || getrel(getnatp(US), THEM)
[empserver] / src / lib / update / ship.c
index 39f22c0e2e115bf1227e79aa42a24c5497eae9ba..2feff43642320806c4bb6a5814c5ba6e85b876d1 100644 (file)
@@ -268,8 +268,7 @@ shiprepair(struct shpstr *ship, struct natstr *np, struct bp *bp, int etus)
     sp = getsectp(ship->shp_x, ship->shp_y);
 
     if (sp->sct_own != 0
-       && sp->sct_own != ship->shp_own
-       && getrel(getnatp(sp->sct_own), ship->shp_own) < FRIENDLY)
+       && relations_with(sp->sct_own, ship->shp_own) < FRIENDLY)
        return;
 
     /* only military can work on a military boat */