#include "treaty.h"
#include "unit.h"
-static int build_ship(struct sctstr *sp, int type, short *vec, int tlev);
-static int build_land(struct sctstr *sp, int type, short *vec, int tlev);
-static int build_nuke(struct sctstr *sp, int type, short *vec, int tlev);
-static int build_plane(struct sctstr *sp, int type, short *vec, int tlev);
+static int build_ship(struct sctstr *sp, int type, int tlev);
+static int build_land(struct sctstr *sp, int type, int tlev);
+static int build_nuke(struct sctstr *sp, int type, int tlev);
+static int build_plane(struct sctstr *sp, int type, int tlev);
static int build_bridge(char);
-static int build_bspan(struct sctstr *sp, short *vec);
-static int build_btower(struct sctstr *sp, short *vec);
+static int build_bspan(struct sctstr *sp);
+static int build_btower(struct sctstr *sp);
static int build_can_afford(double, char *);
/*
struct nstr_sect nstr;
int rqtech, type, number, val, gotsect;
char *p, *what, *prompt;
- int (*build_it)(struct sctstr *, int, short[], int);
+ int (*build_it)(struct sctstr *, int, int);
char buf[1024];
p = getstarg(player->argp[1],
if (!player->owner)
continue;
gotsect = 1;
- if (build_it(§, type, sect.sct_item, tlev))
+ if (build_it(§, type, tlev))
putsect(§);
}
snxtsct_rewind(&nstr);
}
static int
-build_ship(struct sctstr *sp, int type, short *vec, int tlev)
+build_ship(struct sctstr *sp, int type, int tlev)
{
+ short *vec = sp->sct_item;
struct mchrstr *mp = &mchr[type];
struct shpstr ship;
struct nstr_item nstr;
}
static int
-build_land(struct sctstr *sp, int type, short *vec, int tlev)
+build_land(struct sctstr *sp, int type, int tlev)
{
+ short *vec = sp->sct_item;
struct lchrstr *lp = &lchr[type];
struct lndstr land;
struct nstr_item nstr;
}
static int
-build_nuke(struct sctstr *sp, int type, short *vec, int tlev)
+build_nuke(struct sctstr *sp, int type, int tlev)
{
+ short *vec = sp->sct_item;
struct nchrstr *np = &nchr[type];
struct nukstr nuke;
struct nstr_item nstr;
}
static int
-build_plane(struct sctstr *sp, int type, short *vec, int tlev)
+build_plane(struct sctstr *sp, int type, int tlev)
{
+ short *vec = sp->sct_item;
struct plchrstr *pp = &plchr[type];
struct plnstr plane;
struct nstr_item nstr;
{
struct natstr *natp = getnatp(player->cnum);
struct nstr_sect nstr;
- int (*build_it)(struct sctstr *, short[]);
+ int (*build_it)(struct sctstr *);
int gotsect;
struct sctstr sect;
if (!player->owner)
continue;
gotsect = 1;
- if (build_it(§, sect.sct_item))
+ if (build_it(§))
putsect(§);
}
if (!gotsect)
}
static int
-build_bspan(struct sctstr *sp, short *vec)
+build_bspan(struct sctstr *sp)
{
+ short *vec = sp->sct_item;
struct sctstr sect;
int val;
int newx, newy;
}
static int
-build_btower(struct sctstr *sp, short *vec)
+build_btower(struct sctstr *sp)
{
+ short *vec = sp->sct_item;
struct sctstr sect;
int val;
int newx, newy;