(gen_power): Do not include land units with spy capability in the
land unit count. Closes #910398.
This commit is contained in:
parent
965bf6dbe4
commit
4799984997
1 changed files with 2 additions and 1 deletions
|
@ -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_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;
|
||||||
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);
|
snxtitem_all(&ni, EF_SHIP);
|
||||||
while (nxtitem(&ni, &ship)) {
|
while (nxtitem(&ni, &ship)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue