(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
|
@ -439,7 +439,7 @@ get_minimum(struct lndstr *lp, int type)
|
|||
int max, want = 0;
|
||||
|
||||
lcp = &lchr[(int)lp->lnd_type];
|
||||
max = vl_find(V_ITEM(type), lcp->l_vtype, lcp->l_vamt, (int)lcp->l_nv);
|
||||
max = lcp->l_item[type];
|
||||
|
||||
switch (type) {
|
||||
case I_FOOD:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue