From 0a693c1fa205c8358b4a35d5f9f367eb76bc945d Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sat, 16 Jul 2011 11:38:50 +0200 Subject: [PATCH] Fix "sector can board" test to ignore land units on land units boar() lets a sector board if it has mobility or usable land units. Embarked land units are not usable. But it tests only "on ship", not "on land unit". Broken in 4.0.17. --- src/lib/commands/boar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/commands/boar.c b/src/lib/commands/boar.c index b153153a6..c0dfafeca 100644 --- a/src/lib/commands/boar.c +++ b/src/lib/commands/boar.c @@ -90,7 +90,7 @@ boar(void) while (nxtitem(&ni, &land)) { if (land.lnd_own != player->cnum) continue; - if (land.lnd_ship >= 0) + if (land.lnd_ship >= 0 || land.lnd_land >= 0) continue; if (land.lnd_mobil <= 0) continue; -- 2.43.0