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:
parent
6c893f5cc3
commit
983dae641c
1 changed files with 1 additions and 1 deletions
|
@ -589,7 +589,7 @@ shp_fort_interdiction(struct emp_qelem *list, coord newx, coord newy,
|
||||||
|
|
||||||
/* Inform neutral and worse */
|
/* Inform neutral and worse */
|
||||||
for (i = 0; i < MAXNOC; ++i) {
|
for (i = 0; i < MAXNOC; ++i) {
|
||||||
if (getrel(getnatp(i), victim) <= NEUTRAL)
|
if (relations_with(i, victim) <= NEUTRAL)
|
||||||
notified[i] = 0;
|
notified[i] = 0;
|
||||||
else
|
else
|
||||||
notified[i] = 1;
|
notified[i] = 1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue