]> git.pond.sub.org Git - empserver/blobdiff - src/lib/subs/shpsub.c
Use relations_with() in shp_fort_interdiction()
[empserver] / src / lib / subs / shpsub.c
index d18316a969a71a40abff8034011051959d1d047e..8ce26bd1cbfb842abbaecc7d8c27c4d144fed6e3 100644 (file)
@@ -589,7 +589,7 @@ shp_fort_interdiction(struct emp_qelem *list, coord newx, coord newy,
 
     /* Inform neutral and worse */
     for (i = 0; i < MAXNOC; ++i) {
-       if (getrel(getnatp(i), victim) <= NEUTRAL)
+       if (relations_with(i, victim) <= NEUTRAL)
            notified[i] = 0;
        else
            notified[i] = 1;