Fix strength to ignore land units loaded on land units
They can't defend their sector, see get_dlist(). Missed when 4.2.0 made them not defend the sector.
This commit is contained in:
parent
0faf0034e5
commit
8ed7658f9b
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ units_in_sector(struct combat *def)
|
|||
continue;
|
||||
if (land.lnd_own != def->own)
|
||||
continue;
|
||||
if (land.lnd_ship >= 0)
|
||||
if (land.lnd_ship >= 0 || land.lnd_land >= 0)
|
||||
continue;
|
||||
d_unit = defense_val(&land);
|
||||
if (!lnd_could_be_supplied(&land))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue