/* variables using this structure */
extern struct ichrstr ichr[];
-extern int maxitem;
/* procedures using/returning this struct */
/* 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
struct plnstr *pp;
struct lndstr *lp;
struct nukstr *np;
- int oldche;
struct nstr_item ni;
struct plnstr p;
struct lndstr l;
int i;
coord *table; /* sectors already seen */
int t_len = 0;
- int vec[I_MAX + 1];
int nrecon;
int nunits;
struct nstr_sect nstr;
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;
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];