Fix interdiction to obey op-area for missiles
Never worked correctly. Reported by Gregory E. Garland.
(cherry picked from commit 3eb58312b3
)
This commit is contained in:
parent
b9b0710128
commit
3afc1b1989
1 changed files with 3 additions and 0 deletions
|
@ -194,6 +194,9 @@ msl_sel(struct emp_qelem *list, coord x, coord y, natid victim,
|
||||||
continue;
|
continue;
|
||||||
if (mission && plane.pln_mission != mission)
|
if (mission && plane.pln_mission != mission)
|
||||||
continue;
|
continue;
|
||||||
|
if (mission &&
|
||||||
|
plane.pln_radius < mapdist(x, y, plane.pln_opx, plane.pln_opy))
|
||||||
|
continue;
|
||||||
if (getrel(getnatp(plane.pln_own), victim) >= NEUTRAL)
|
if (getrel(getnatp(plane.pln_own), victim) >= NEUTRAL)
|
||||||
continue;
|
continue;
|
||||||
/* missiles go one way, so we can use all the range */
|
/* missiles go one way, so we can use all the range */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue