forked from github/server
piraterie-fix (unnötiger check)
This commit is contained in:
parent
f7482028ea
commit
326e4be90d
|
@ -1841,8 +1841,7 @@ piracy(unit *u)
|
||||||
|
|
||||||
for(sh2 = rc->ships; sh2; sh2 = sh2->next) {
|
for(sh2 = rc->ships; sh2; sh2 = sh2->next) {
|
||||||
cap = shipowner(rc, sh2);
|
cap = shipowner(rc, sh2);
|
||||||
if (cap && !alliedunit(u, cap->faction, HELP_FIGHT)
|
if (cap && (intlist_find(il, cap->faction->no) || all)) {
|
||||||
&& (intlist_find(il, cap->faction->no) || all)) {
|
|
||||||
aff[dir]++;
|
aff[dir]++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue