]> git.pond.sub.org Git - empserver/commitdiff
Use relations_with() in shp_fort_interdiction()
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 30 Jan 2011 15:39:38 +0000 (16:39 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Wed, 16 Feb 2011 06:55:24 +0000 (07:55 +0100)
No functional change, because the change affects only
notified[victim], which isn't used in the loop around
notify_coastguard(), and gets overwritten before the interdiction fire
loop.

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;