From 45d090b8c392b2d49be25cfe9f6c35446e287b58 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sat, 16 Jul 2011 11:47:52 +0200 Subject: [PATCH] Make llook ignore land units and planes loaded on land units Probably overlooked when trains were added in 4.0.0. --- src/lib/commands/look.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/commands/look.c b/src/lib/commands/look.c index ddf6e4015..55dd15e20 100644 --- a/src/lib/commands/look.c +++ b/src/lib/commands/look.c @@ -222,7 +222,7 @@ look_land(struct lndstr *lookland) for (i = 0; NULL != (lp = getlandp(i)); i++) { if (lp->lnd_own == player->cnum || lp->lnd_own == 0) continue; - if (lp->lnd_ship >= 0) + if (lp->lnd_ship >= 0 || lp->lnd_land >= 0) continue; /* Don't always see spies */ if (lchr[(int)lp->lnd_type].l_flags & L_SPY) { @@ -249,7 +249,7 @@ look_land(struct lndstr *lookland) for (i = 0; NULL != (pp = getplanep(i)); i++) { if (pp->pln_own == player->cnum || pp->pln_own == 0) continue; - if (pp->pln_ship >= 0) + if (pp->pln_ship >= 0 || pp->pln_land >= 0) continue; if (pp->pln_flags & PLN_LAUNCHED) continue; -- 2.43.0