From: Markus Armbruster Date: Sun, 30 Jan 2011 15:39:38 +0000 (+0100) Subject: Use relations_with() in shp_fort_interdiction() X-Git-Tag: v4.3.27~131 X-Git-Url: http://git.pond.sub.org/?p=empserver;a=commitdiff_plain;h=983dae641c3bf738aad96d31613baac18fb674d3 Use relations_with() in shp_fort_interdiction() 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. --- diff --git a/src/lib/subs/shpsub.c b/src/lib/subs/shpsub.c index d18316a96..8ce26bd1c 100644 --- a/src/lib/subs/shpsub.c +++ b/src/lib/subs/shpsub.c @@ -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;