(produce_sect): Don't truncate population; that's already done in

do_feed().
This commit is contained in:
Markus Armbruster 2007-01-14 08:59:07 +00:00
parent e50ec526f5
commit 613e71acb3

View file

@ -264,7 +264,7 @@ produce_sect(int natnum, int etu, struct bp *bp, long p_sect[][2])
short buf[I_MAX + 1]; short buf[I_MAX + 1];
short *vec; short *vec;
int work, cost, ecost, pcost, sctwork; int work, cost, ecost, pcost, sctwork;
int n, desig, maxpop, neweff, amount; int n, desig, neweff, amount;
for (n = 0; NULL != (sp = getsectid(n)); n++) { for (n = 0; NULL != (sp = getsectid(n)); n++) {
if (sp->sct_type == SCT_WATER) if (sp->sct_type == SCT_WATER)
@ -362,11 +362,6 @@ produce_sect(int natnum, int etu, struct bp *bp, long p_sect[][2])
p_sect[desig][0] += amount; p_sect[desig][0] += amount;
p_sect[desig][1] += pcost; p_sect[desig][1] += pcost;
if (!player->simulation) { if (!player->simulation) {
maxpop = max_pop(np->nat_level[NAT_RLEV], sp);
if (vec[I_CIVIL] > maxpop)
vec[I_CIVIL] = maxpop;
if (vec[I_UW] > maxpop)
vec[I_UW] = maxpop;
sp->sct_avail = work; sp->sct_avail = work;
np->nat_money -= pcost; np->nat_money -= pcost;
} }