prod() duplicates materials_cost(), clean up

Rename materials_cost() to prod_materials_cost(), give external
linkage, use it in prod().
This commit is contained in:
Markus Armbruster 2013-05-03 20:52:02 +02:00
parent ac60160355
commit f0927e7f64
4 changed files with 15 additions and 22 deletions

View file

@ -716,6 +716,7 @@ extern int bank_income(struct sctstr *, int);
/* produce.c */
extern int produce(struct natstr *, struct sctstr *, short *, int, int,
int, int *, int *);
extern int prod_materials_cost(struct pchrstr *, short[], int *);
extern double prod_eff(int, float);
/* removewants.c */
extern int update_removewants(void);

View file

@ -48,6 +48,7 @@ struct nchrstr;
struct nstr_item;
struct nstr_sect;
struct nukstr;
struct pchrstr;
struct player;
struct plist;
struct plnstr;