]> git.pond.sub.org Git - empserver/blobdiff - src/lib/subs/mission.c
Use relations_with() in unit_interdict()
[empserver] / src / lib / subs / mission.c
index bd612cc50c65150f4c2d5fd0baefe2b26e5f8613..35652347078a5784dfb37777ef5c4ef060f78b05 100644 (file)
@@ -187,10 +187,10 @@ unit_interdict(coord x, coord y, natid victim, char *s, int hardtarget,
     memset(mi, 0, sizeof(mi));
     other_act[0] = plane_act[0] = 0;
     for (cn = 1; cn < MAXNOC; cn++) {
-       rel = getrel(getnatp(cn), victim);
+       rel = relations_with(cn, victim);
        other_act[cn] = rel <= HOSTILE;
        plane_act[cn] = mission == MI_SINTERDICT
-           ? cn != victim && rel <= NEUTRAL : other_act[cn];
+           ? rel <= NEUTRAL : other_act[cn];
        emp_initque((struct emp_qelem *)&mi[cn]);
     }