(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
|
@ -303,8 +303,7 @@ pln_dropoff(struct emp_qelem *list, struct ichrstr *ip, coord tx, coord ty,
|
|||
sp = ptr;
|
||||
there = sp->shp_item[ip->i_vtype];
|
||||
mp = &mchr[(int)sp->shp_type];
|
||||
max = vl_find(ip->i_vtype, mp->m_vtype,
|
||||
mp->m_vamt, (int)mp->m_nv);
|
||||
max = mp->m_item[ip->i_vtype];
|
||||
}
|
||||
there += amt;
|
||||
if (there > max) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue