update: Drop redundant produce() parameters desig, neweff
Its caller passes sp->sct_type and sp->sct_effic, so use that. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
a60919041d
commit
43fc32a365
3 changed files with 7 additions and 8 deletions
|
@ -327,7 +327,7 @@ produce_sect(struct natstr *np, int etu, struct bp *bp, int p_sect[][2])
|
|||
|
||||
if (sp->sct_effic >= 60) {
|
||||
if (np->nat_money >= 0 && dchr[sp->sct_type].d_prd >= 0)
|
||||
amount = produce(np, sp, sp->sct_type, sp->sct_effic, &pcost);
|
||||
amount = produce(np, sp, &pcost);
|
||||
bp_put_items(bp, sp);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue