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.
This commit is contained in:
Markus Armbruster 2011-01-30 16:39:38 +01:00
parent 6c893f5cc3
commit 983dae641c

View 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;