(produce_sect, update_main): Charge capital maintenance in
produce_sect(), just like all the other sector costs.
This commit is contained in:
parent
2d99971a7f
commit
a7393becc0
2 changed files with 2 additions and 1 deletions
|
@ -133,7 +133,6 @@ update_main(void *unused)
|
||||||
|
|
||||||
/* produce all sects */
|
/* produce all sects */
|
||||||
produce_sect(x, etu, bp, p_sect);
|
produce_sect(x, etu, bp, p_sect);
|
||||||
np->nat_money -= p_sect[SCT_CAPIT][1];
|
|
||||||
|
|
||||||
/* build units */
|
/* build units */
|
||||||
prod_ship(etu, x, bp, 1);
|
prod_ship(etu, x, bp, 1);
|
||||||
|
|
|
@ -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)) {
|
if ((sp->sct_type == SCT_CAPIT) && (sp->sct_effic > 60)) {
|
||||||
p_sect[SCT_CAPIT][0]++;
|
p_sect[SCT_CAPIT][0]++;
|
||||||
p_sect[SCT_CAPIT][1] += etu;
|
p_sect[SCT_CAPIT][1] += etu;
|
||||||
|
if (!player->simulation)
|
||||||
|
np->nat_money -= etu;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (player->simulation) {
|
if (player->simulation) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue