From cce7f179b8495156ee9196c21b2e1a07d4813a90 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Wed, 14 Jun 2006 17:56:26 +0000 Subject: [PATCH] (satmap, satdisp_units): Don't show landspies. (satdisp_units): Don't show land units loaded on ships or land units. (satdisp_units): Align table header with body. --- src/lib/subs/satmap.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/lib/subs/satmap.c b/src/lib/subs/satmap.c index d11107d6..b1167692 100644 --- a/src/lib/subs/satmap.c +++ b/src/lib/subs/satmap.c @@ -208,6 +208,8 @@ satmap(int x, int y, int eff, int range, int flags, int type) while (nxtitem(&ni, &land)) { if (land.lnd_own == 0) continue; + if (lchr[(int)land.lnd_type].l_flags & L_SPY) + continue; if (!chance(land.lnd_effic / 20.0)) continue; if (++crackle == 100) @@ -329,11 +331,15 @@ satdisp_units(coord x, coord y) while (nxtitem(&ni, &land)) { if (land.lnd_own == 0) continue; + if (land.lnd_ship >= 0 || land.lnd_land >= 0) + continue; + if (lchr[(int)land.lnd_type].l_flags & L_SPY) + continue; if (!chance(land.lnd_effic / 20.0)) continue; if (first) { - pr("\t own lnd# unit type sector eff\n"); + pr("\t own lnd# unit type sector eff\n"); first = 0; }