(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
|
@ -99,9 +99,7 @@ struct lndstr {
|
|||
#define LND_NOTANY bit(0) /* Just a placeholder, not used */
|
||||
|
||||
struct lchrstr {
|
||||
u_char l_nv; /* number of variables it can hold */
|
||||
u_char l_vtype[MAXCHRNV];
|
||||
u_short l_vamt[MAXCHRNV];
|
||||
u_short l_item[I_MAX+1]; /* load limit */
|
||||
s_char *l_name; /* full name of type of land unit */
|
||||
int l_lcm; /* units of lcm to build */
|
||||
int l_hcm; /* units of hcm to build */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue