diff --git a/src/lib/update/main.c b/src/lib/update/main.c index a17891fa..3afc8349 100644 --- a/src/lib/update/main.c +++ b/src/lib/update/main.c @@ -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); diff --git a/src/lib/update/sect.c b/src/lib/update/sect.c index df61432b..91a6a54e 100644 --- a/src/lib/update/sect.c +++ b/src/lib/update/sect.c @@ -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) {