(produce_sect, update_main): Charge capital maintenance in

produce_sect(), just like all the other sector costs.
This commit is contained in:
Markus Armbruster 2006-06-22 17:16:31 +00:00
parent 2d99971a7f
commit a7393becc0
2 changed files with 2 additions and 1 deletions

View file

@ -133,7 +133,6 @@ update_main(void *unused)
/* produce all sects */
produce_sect(x, etu, bp, p_sect);
np->nat_money -= p_sect[SCT_CAPIT][1];
/* build units */
prod_ship(etu, x, bp, 1);

View file

@ -286,6 +286,8 @@ produce_sect(int natnum, int etu, int *bp, long p_sect[][2])
if ((sp->sct_type == SCT_CAPIT) && (sp->sct_effic > 60)) {
p_sect[SCT_CAPIT][0]++;
p_sect[SCT_CAPIT][1] += etu;
if (!player->simulation)
np->nat_money -= etu;
}
if (player->simulation) {