Merge dodistribute() parameters dist_i_cost, dist_e_cost
Only one of them is used, depending on argument imex. Replace them by a single parameter path_cost.
This commit is contained in:
parent
d1bdeb4353
commit
791ba26c5e
3 changed files with 8 additions and 9 deletions
|
@ -122,7 +122,7 @@ finish_sects(int etu)
|
|||
continue;
|
||||
/* Get the pointer */
|
||||
infptr = &g_distptrs[sp->sct_uid];
|
||||
dodistribute(sp, EXPORT, infptr->imcost, infptr->excost);
|
||||
dodistribute(sp, EXPORT, infptr->excost);
|
||||
}
|
||||
logerror("done exporting\n");
|
||||
|
||||
|
@ -135,7 +135,7 @@ finish_sects(int etu)
|
|||
np = getnatp(sp->sct_own);
|
||||
if (np->nat_money < 0)
|
||||
continue;
|
||||
dodistribute(sp, IMPORT, infptr->imcost, infptr->excost);
|
||||
dodistribute(sp, IMPORT, infptr->imcost);
|
||||
sp->sct_off = 0;
|
||||
}
|
||||
logerror("done importing\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue