(gen_power): Do not include land units with spy capability in the

land unit count. Closes #910398.
This commit is contained in:
Ron Koenderink 2005-12-17 12:41:39 +00:00
parent 965bf6dbe4
commit 4799984997

View file

@ -259,6 +259,7 @@ 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_lcm / 10.0) * (land.lnd_effic / 100.0);
f += (lchr[(int)land.lnd_type].l_hcm / 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_power += f * 2;
if (!(lchr[(int)land.lnd_type].l_flags & L_SPY))
pow->p_units += 1.0; pow->p_units += 1.0;
} }
snxtitem_all(&ni, EF_SHIP); snxtitem_all(&ni, EF_SHIP);