Check pln_airbase_ok() in msl_sel()
The lack of base checking there permitted ship and land unit missile interdiction and ballistic missile interception without a proper base.
This commit is contained in:
parent
52b303498e
commit
d5c9cfec28
1 changed files with 2 additions and 0 deletions
|
@ -200,6 +200,8 @@ msl_sel(struct emp_qelem *list, coord x, coord y, natid victim,
|
||||||
continue;
|
continue;
|
||||||
if (plane.pln_effic < 100)
|
if (plane.pln_effic < 100)
|
||||||
continue;
|
continue;
|
||||||
|
if (!pln_airbase_ok(&plane, 1, 0))
|
||||||
|
continue;
|
||||||
/* got a valid interceptor */
|
/* got a valid interceptor */
|
||||||
irv = malloc(sizeof(*irv));
|
irv = malloc(sizeof(*irv));
|
||||||
irv->bombs = 0;
|
irv->bombs = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue