From 47999849978779aa7234488dcc6831cf13f9ce5c Mon Sep 17 00:00:00 2001 From: Ron Koenderink Date: Sat, 17 Dec 2005 12:41:39 +0000 Subject: [PATCH] (gen_power): Do not include land units with spy capability in the land unit count. Closes #910398. --- src/lib/commands/powe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/commands/powe.c b/src/lib/commands/powe.c index 8d5edf26..fd27c404 100644 --- a/src/lib/commands/powe.c +++ b/src/lib/commands/powe.c @@ -259,7 +259,8 @@ gen_power(void) f = (lchr[(int)land.lnd_type].l_lcm / 10.0) * (land.lnd_effic / 100.0); f += (lchr[(int)land.lnd_type].l_hcm / 10.0) * (land.lnd_effic / 100.0); pow->p_power += f * 2; - pow->p_units += 1.0; + if (!(lchr[(int)land.lnd_type].l_flags & L_SPY)) + pow->p_units += 1.0; } snxtitem_all(&ni, EF_SHIP); while (nxtitem(&ni, &ship)) {