From a7393becc0d7600d8926d11b830088866822a092 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Thu, 22 Jun 2006 17:16:31 +0000 Subject: [PATCH] (produce_sect, update_main): Charge capital maintenance in produce_sect(), just like all the other sector costs. --- src/lib/update/main.c | 1 - src/lib/update/sect.c | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) 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) {