update: Push budget update into produce(), enlist()
produce() and enlist store the cost through a parameter and return the amount. Their caller produce_sect() then updates nat_budget[] accordingly. Move the nat_budget[] update into the callees. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
a5314a59c4
commit
058268595f
3 changed files with 29 additions and 32 deletions
|
@ -130,7 +130,7 @@ extern void upd_slmilcosts(int, natid);
|
|||
extern void bank_income(struct sctstr *, int);
|
||||
extern void pay_reserve(struct natstr *, int);
|
||||
/* produce.c */
|
||||
extern int produce(struct natstr *, struct sctstr *, int *);
|
||||
extern void produce(struct natstr *, struct sctstr *);
|
||||
extern int prod_materials_cost(struct pchrstr *, short[], int *);
|
||||
extern int prod_resource_limit(struct pchrstr *, unsigned char *);
|
||||
extern double prod_eff(int, float);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue