update: Track oldowned civilians in nat_budget[]

Replace pops[] by nat_budget[].oldowned_civs.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2016-06-19 12:31:16 +02:00
parent 4a714a37da
commit 6eb4fd3cbf
6 changed files with 13 additions and 22 deletions

View file

@ -149,7 +149,7 @@ prod_nat(int etu)
*/
hap_edu = np->nat_level[NAT_ELEV];
hap_edu = 1.5 - ((hap_edu + 10.0) / (hap_edu + 20.0));
pop = pops[n] + 1;
pop = nat_budget[n].oldowned_civs + 1;
/*
* get per-population happiness and education
* see what the total per-civilian production is