(I_NONE, I_CIVIL, I_MILIT, I_SHELL, I_GUN, I_PETROL, I_IRON, I_DUST,
I_BAR, I_FOOD, I_OIL, I_LCM, I_HCM, I_UW, I_RAD, I_MAX): Turn macros into enumeration constants. (i_type): New. Use where appropriate. No functional changes, except that I_NONE is now catched properly in a few places.
This commit is contained in:
parent
308430e751
commit
d30942632b
38 changed files with 143 additions and 134 deletions
|
@ -737,7 +737,7 @@ static int
|
|||
load_comm_ship(struct sctstr *sectp, struct shpstr *sp,
|
||||
struct ichrstr *ich, int load_unload, int *nshipsp)
|
||||
{
|
||||
register int item = ich->i_vtype;
|
||||
i_type item = ich->i_vtype;
|
||||
struct mchrstr *mcp = &mchr[(int)sp->shp_type];
|
||||
int ship_amt, ship_max, sect_amt, move_amt;
|
||||
int amount;
|
||||
|
@ -940,7 +940,7 @@ static int
|
|||
load_comm_land(struct sctstr *sectp, struct lndstr *lp,
|
||||
struct ichrstr *ich, int load_unload, int *nunitsp)
|
||||
{
|
||||
register int item = ich->i_vtype;
|
||||
i_type item = ich->i_vtype;
|
||||
struct lchrstr *lcp = &lchr[(int)lp->lnd_type];
|
||||
int land_amt, land_max, sect_amt, move_amt;
|
||||
int amount;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue