(mchrstr, lchrstr): Change from variable-style storage of load
capacities to straight arrays. Users now subscript the array instead of calling vl_find() or walking the variable data structure. (mchr, lchr): Initializers adapted. (vl_find): No longer used. Remove file.
This commit is contained in:
parent
a965b2d25e
commit
8a0854b6b8
22 changed files with 168 additions and 697 deletions
|
@ -754,7 +754,7 @@ load_comm_ship(struct sctstr *sectp, struct shpstr *sp,
|
|||
return RET_SYN;
|
||||
|
||||
ship_amt = sp->shp_item[item];
|
||||
ship_max = vl_find(item, mcp->m_vtype, mcp->m_vamt, mcp->m_nv);
|
||||
ship_max = mcp->m_item[item];
|
||||
sect_amt = sectp->sct_item[item];
|
||||
amount = atoi(p);
|
||||
if (amount < 0)
|
||||
|
@ -957,7 +957,7 @@ load_comm_land(struct sctstr *sectp, struct lndstr *lp,
|
|||
return RET_SYN;
|
||||
|
||||
land_amt = lp->lnd_item[item];
|
||||
land_max = vl_find(item, lcp->l_vtype, lcp->l_vamt, lcp->l_nv);
|
||||
land_max = lcp->l_item[item];
|
||||
sect_amt = sectp->sct_item[item];
|
||||
amount = atoi(p);
|
||||
if (amount < 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue