diff --git a/include/item.h b/include/item.h index 953d6cb6..a5525b0e 100644 --- a/include/item.h +++ b/include/item.h @@ -49,7 +49,6 @@ struct ichrstr { /* variables using this structure */ extern struct ichrstr ichr[]; -extern int maxitem; /* procedures using/returning this struct */ diff --git a/include/sect.h b/include/sect.h index 6daa05ae..42cb74e9 100644 --- a/include/sect.h +++ b/include/sect.h @@ -184,7 +184,7 @@ extern struct dchrstr bigcity_dchr; /* Sector flags */ #define MOVE_IN_PROGRESS bit(0) /* move in progress */ -/* maximum amount of an item, must fit into sct_item[], sct_del[], sct_dist */ +/* maximum item amount, must fit into sct_item[], sct_del[], sct_dist[] */ #define ITEM_MAX 9999 /* maximum number of mines, must fit into struct sctstr member sct_mines */ #define MINES_MAX 65535 diff --git a/src/lib/commands/cede.c b/src/lib/commands/cede.c index 8b1162dc..a7be84a4 100644 --- a/src/lib/commands/cede.c +++ b/src/lib/commands/cede.c @@ -200,7 +200,6 @@ grab_sect(register struct sctstr *sp, natid to) struct plnstr *pp; struct lndstr *lp; struct nukstr *np; - int oldche; struct nstr_item ni; struct plnstr p; struct lndstr l; diff --git a/src/lib/commands/spy.c b/src/lib/commands/spy.c index db9e4fea..3001345b 100644 --- a/src/lib/commands/spy.c +++ b/src/lib/commands/spy.c @@ -74,7 +74,6 @@ spy(void) int i; coord *table; /* sectors already seen */ int t_len = 0; - int vec[I_MAX + 1]; int nrecon; int nunits; struct nstr_sect nstr; diff --git a/src/lib/commands/work.c b/src/lib/commands/work.c index 574e8c4f..68bab5fa 100644 --- a/src/lib/commands/work.c +++ b/src/lib/commands/work.c @@ -125,7 +125,6 @@ work(void) static int buildeff(struct sctstr *sp, int work, double *money) { - int vec[I_MAX + 1]; register int work_cost; int n, hcms, lcms; int effdone = 0; diff --git a/src/lib/subs/supply.c b/src/lib/subs/supply.c index afb86686..df0ac37d 100644 --- a/src/lib/subs/supply.c +++ b/src/lib/subs/supply.c @@ -554,7 +554,7 @@ int use_supply(struct lndstr *lp) { struct lchrstr *lcp; - int vec[I_MAX + 1], shells_needed, shells, food, food_needed; + int shells_needed, shells, food, food_needed; int fuel_needed, fuel, petrol_needed, petrol; lcp = &lchr[(int)lp->lnd_type];