]> git.pond.sub.org Git - empserver/commitdiff
Fix strength to ignore land units loaded on land units
authorMarkus Armbruster <armbru@pond.sub.org>
Wed, 13 Jul 2011 18:37:41 +0000 (20:37 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Wed, 13 Jul 2011 18:37:41 +0000 (20:37 +0200)
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

index 12f0a03b48d03074f4601a108a6a30c52abe89c7..55e08636c1a41581a5965b0cc875236dcb426de6 100644 (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))