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:
Markus Armbruster 2011-07-13 20:37:41 +02:00
parent 0faf0034e5
commit 8ed7658f9b

View file

@ -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))