From 8ed7658f9b6cf816ea5f70bcbccb910e4394d880 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Wed, 13 Jul 2011 20:37:41 +0200 Subject: [PATCH] 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. --- src/lib/commands/stre.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/commands/stre.c b/src/lib/commands/stre.c index 12f0a03b4..55e08636c 100644 --- a/src/lib/commands/stre.c +++ b/src/lib/commands/stre.c @@ -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)) -- 2.43.0