Do not include var.h where no longer needed. Clean up register keywords in these file at the same time. No functional changes.
This commit is contained in:
parent
442803c30a
commit
e9a040adb9
187 changed files with 246 additions and 435 deletions
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "nat.h"
|
||||
#include "sect.h"
|
||||
#include "file.h"
|
||||
|
|
|
@ -37,7 +37,6 @@
|
|||
#include <ctype.h>
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "sect.h"
|
||||
#include "nat.h"
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
#include <string.h>
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "nuke.h"
|
||||
#include "plane.h"
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
#include <ctype.h>
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "land.h"
|
||||
#include "xy.h"
|
||||
#include "nsc.h"
|
||||
|
@ -46,7 +45,7 @@ int
|
|||
army(void)
|
||||
{
|
||||
struct lndstr land;
|
||||
register int count;
|
||||
int count;
|
||||
s_char *cp;
|
||||
s_char c;
|
||||
struct nstr_item nstr;
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "file.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "path.h"
|
||||
#include "news.h"
|
||||
|
|
|
@ -37,7 +37,6 @@
|
|||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "file.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "path.h"
|
||||
#include "news.h"
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "item.h"
|
||||
#include "xy.h"
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "item.h"
|
||||
#include "xy.h"
|
||||
|
|
|
@ -35,7 +35,6 @@
|
|||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "file.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "path.h"
|
||||
#include "news.h"
|
||||
|
|
|
@ -37,7 +37,6 @@
|
|||
#include <string.h>
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "ship.h"
|
||||
#include "land.h"
|
||||
|
@ -361,7 +360,7 @@ pin_bomb(struct emp_qelem *list, struct sctstr *target)
|
|||
static void
|
||||
eff_bomb(struct emp_qelem *list, struct sctstr *target)
|
||||
{
|
||||
register struct plist *plp;
|
||||
struct plist *plp;
|
||||
struct emp_qelem *qp;
|
||||
struct sctstr sect;
|
||||
int oldeff, dam = 0;
|
||||
|
@ -411,7 +410,7 @@ eff_bomb(struct emp_qelem *list, struct sctstr *target)
|
|||
static void
|
||||
comm_bomb(struct emp_qelem *list, struct sctstr *target)
|
||||
{
|
||||
register struct plist *plp;
|
||||
struct plist *plp;
|
||||
float b;
|
||||
int i;
|
||||
int amt, before;
|
||||
|
@ -873,7 +872,7 @@ land_bomb(struct emp_qelem *list, struct sctstr *target)
|
|||
static void
|
||||
strat_bomb(struct emp_qelem *list, struct sctstr *target)
|
||||
{
|
||||
register struct plist *plp;
|
||||
struct plist *plp;
|
||||
int dam = 0;
|
||||
struct emp_qelem *qp;
|
||||
struct sctstr sect;
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
#include <string.h>
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "nsc.h"
|
||||
#include "sect.h"
|
||||
|
@ -222,7 +221,7 @@ calc_all(long p_sect[][2],
|
|||
int *units, int *lbuild, int *nlbuild, int *lmaint,
|
||||
int *planes, int *pbuild, int *npbuild, int *pmaint)
|
||||
{
|
||||
register int y, z;
|
||||
int y, z;
|
||||
struct natstr *np;
|
||||
int sm = 0, sb = 0, pm = 0, pb = 0, lm = 0, lb = 0;
|
||||
int *bp;
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
#include "misc.h"
|
||||
#include "xy.h"
|
||||
#include "file.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "nat.h"
|
||||
#include "news.h"
|
||||
|
|
|
@ -35,7 +35,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "nat.h"
|
||||
#include "xy.h"
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "sect.h"
|
||||
#include "ship.h"
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "sect.h"
|
||||
#include "nsc.h"
|
||||
|
@ -51,8 +50,8 @@
|
|||
static void cede_hdr(void);
|
||||
static int cede_sect(struct nstr_sect *, natid);
|
||||
static int cede_ship(struct nstr_item *, natid);
|
||||
static void grab_sect(register struct sctstr *, natid);
|
||||
static void grab_ship(register struct shpstr *, natid);
|
||||
static void grab_sect(struct sctstr *, natid);
|
||||
static void grab_ship(struct shpstr *, natid);
|
||||
|
||||
int
|
||||
cede(void)
|
||||
|
@ -195,7 +194,7 @@ cede_hdr(void)
|
|||
|
||||
|
||||
static void
|
||||
grab_sect(register struct sctstr *sp, natid to)
|
||||
grab_sect(struct sctstr *sp, natid to)
|
||||
{
|
||||
struct plnstr *pp;
|
||||
struct lndstr *lp;
|
||||
|
@ -332,10 +331,10 @@ cede_ship(struct nstr_item *ni, natid to)
|
|||
}
|
||||
|
||||
static void
|
||||
grab_ship(register struct shpstr *sp, natid to)
|
||||
grab_ship(struct shpstr *sp, natid to)
|
||||
{
|
||||
register struct plnstr *pp;
|
||||
register struct lndstr *lp;
|
||||
struct plnstr *pp;
|
||||
struct lndstr *lp;
|
||||
struct nstr_item ni;
|
||||
struct plnstr p;
|
||||
struct lndstr l;
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "sect.h"
|
||||
#include "nsc.h"
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "ship.h"
|
||||
#include "nat.h"
|
||||
|
@ -144,9 +143,9 @@ coas(void)
|
|||
static int
|
||||
showship(struct coast **cpp, int x, int y)
|
||||
{
|
||||
register struct coast *cp;
|
||||
register struct coast *todelete = 0;
|
||||
register struct coast **prev;
|
||||
struct coast *cp;
|
||||
struct coast *todelete = 0;
|
||||
struct coast **prev;
|
||||
int nship = 0;
|
||||
|
||||
prev = 0;
|
||||
|
|
|
@ -35,7 +35,6 @@
|
|||
#include <math.h>
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "file.h"
|
||||
#include "sect.h"
|
||||
#include "item.h"
|
||||
|
@ -49,9 +48,9 @@
|
|||
int
|
||||
coll(void)
|
||||
{
|
||||
register int arg;
|
||||
register int i;
|
||||
register int val;
|
||||
int arg;
|
||||
int i;
|
||||
int val;
|
||||
time_t now;
|
||||
char *p;
|
||||
struct lonstr loan;
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "xy.h"
|
||||
#include "nsc.h"
|
||||
|
|
|
@ -37,7 +37,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "nat.h"
|
||||
#include "xy.h"
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "nat.h"
|
||||
#include "xy.h"
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "xy.h"
|
||||
#include "nsc.h"
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "xy.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "item.h"
|
||||
#include "file.h"
|
||||
|
@ -47,9 +46,9 @@ int
|
|||
deli(void)
|
||||
{
|
||||
struct sctstr sect;
|
||||
register int dir, del;
|
||||
register struct ichrstr *ich;
|
||||
register int thresh;
|
||||
int dir, del;
|
||||
struct ichrstr *ich;
|
||||
int thresh;
|
||||
int sx, sy;
|
||||
struct nstr_sect nstr;
|
||||
s_char buf[1024];
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "xy.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "nat.h"
|
||||
#include "nsc.h"
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "item.h"
|
||||
#include "xy.h"
|
||||
|
@ -70,7 +69,7 @@ static long
|
|||
do_desi(struct natstr *natp, s_char *sects, s_char *deschar, long int cash,
|
||||
int for_real)
|
||||
{
|
||||
register int n;
|
||||
int n;
|
||||
s_char *p;
|
||||
int breaksanct;
|
||||
int cap_x;
|
||||
|
|
|
@ -35,7 +35,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "sect.h"
|
||||
#include "nsc.h"
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "ship.h"
|
||||
#include "item.h"
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "sect.h"
|
||||
#include "nsc.h"
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "sect.h"
|
||||
#include "nsc.h"
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
#include <ctype.h>
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "ship.h"
|
||||
#include "xy.h"
|
||||
#include "nsc.h"
|
||||
|
@ -46,7 +45,7 @@ int
|
|||
flee(void)
|
||||
{
|
||||
struct shpstr ship;
|
||||
register int count;
|
||||
int count;
|
||||
s_char *cp;
|
||||
s_char c;
|
||||
struct nstr_item nstr;
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "ship.h"
|
||||
#include "item.h"
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
#include <ctype.h>
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "ship.h"
|
||||
#include "xy.h"
|
||||
#include "nsc.h"
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "sect.h"
|
||||
#include "land.h"
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "nat.h"
|
||||
#include "news.h"
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "sect.h"
|
||||
#include "nat.h"
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "item.h"
|
||||
#include "plane.h"
|
||||
|
|
|
@ -35,7 +35,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "xy.h"
|
||||
#include "nsc.h"
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
#include <string.h>
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "sect.h"
|
||||
#include "nsc.h"
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "sect.h"
|
||||
#include "land.h"
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "xy.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "item.h"
|
||||
#include "plane.h"
|
||||
|
|
|
@ -35,7 +35,6 @@
|
|||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "file.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "path.h"
|
||||
#include "news.h"
|
||||
|
|
|
@ -41,7 +41,6 @@
|
|||
#include "nsc.h"
|
||||
#include "file.h"
|
||||
#include "optlist.h"
|
||||
#include "var.h"
|
||||
#include "commands.h"
|
||||
|
||||
int
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "xy.h"
|
||||
#include "nsc.h"
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "sect.h"
|
||||
#include "ship.h"
|
||||
|
@ -47,12 +46,12 @@
|
|||
#include "commands.h"
|
||||
#include "optlist.h"
|
||||
|
||||
static void look_ship(register struct shpstr *lookship);
|
||||
static void look_ship(struct shpstr *lookship);
|
||||
|
||||
int
|
||||
look(void)
|
||||
{
|
||||
register int i;
|
||||
int i;
|
||||
struct nstr_item ni;
|
||||
struct shpstr myship;
|
||||
struct sctstr sect;
|
||||
|
@ -113,11 +112,11 @@ look(void)
|
|||
}
|
||||
|
||||
static void
|
||||
look_ship(register struct shpstr *lookship)
|
||||
look_ship(struct shpstr *lookship)
|
||||
{
|
||||
register struct shpstr *sp;
|
||||
register struct mchrstr *smcp;
|
||||
register struct mchrstr *tmcp;
|
||||
struct shpstr *sp;
|
||||
struct mchrstr *smcp;
|
||||
struct mchrstr *tmcp;
|
||||
struct sctstr sect;
|
||||
int range;
|
||||
int vrange;
|
||||
|
@ -172,12 +171,12 @@ look_ship(register struct shpstr *lookship)
|
|||
}
|
||||
}
|
||||
|
||||
static void look_land(register struct lndstr *lookland);
|
||||
static void look_land(struct lndstr *lookland);
|
||||
|
||||
int
|
||||
llook(void)
|
||||
{
|
||||
register int i;
|
||||
int i;
|
||||
struct nstr_item ni;
|
||||
struct lndstr myland;
|
||||
struct sctstr sect;
|
||||
|
@ -247,10 +246,10 @@ llook(void)
|
|||
}
|
||||
|
||||
static void
|
||||
look_land(register struct lndstr *lookland)
|
||||
look_land(struct lndstr *lookland)
|
||||
{
|
||||
register struct plnstr *pp;
|
||||
register struct lndstr *lp;
|
||||
struct plnstr *pp;
|
||||
struct lndstr *lp;
|
||||
double drange;
|
||||
int range;
|
||||
int vrange;
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "sect.h"
|
||||
#include "land.h"
|
||||
|
|
|
@ -35,7 +35,6 @@
|
|||
#include <ctype.h>
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "land.h"
|
||||
#include "sect.h"
|
||||
#include "news.h"
|
||||
|
|
|
@ -35,7 +35,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "nat.h"
|
||||
#include "var.h"
|
||||
#include "item.h"
|
||||
#include "commodity.h"
|
||||
#include "player.h"
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "treaty.h"
|
||||
#include "nat.h"
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "ship.h"
|
||||
#include "land.h"
|
||||
#include "sect.h"
|
||||
|
|
|
@ -35,7 +35,6 @@
|
|||
#include "options.h"
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "sect.h"
|
||||
#include "retreat.h"
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
#include <ctype.h>
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "ship.h"
|
||||
#include "xy.h"
|
||||
#include "nsc.h"
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "sect.h"
|
||||
#include "nsc.h"
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "land.h"
|
||||
#include "nsc.h"
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "ship.h"
|
||||
#include "xy.h"
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "nat.h"
|
||||
#include "sect.h"
|
||||
#include "file.h"
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
#include <ctype.h>
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "ship.h"
|
||||
#include "sect.h"
|
||||
#include "news.h"
|
||||
|
@ -219,7 +218,7 @@ navi(void)
|
|||
int
|
||||
nav_map(int x, int y, int show_designations)
|
||||
{
|
||||
register s_char *ptr;
|
||||
s_char *ptr;
|
||||
struct nstr_sect ns;
|
||||
struct natstr *np;
|
||||
struct sctstr sect;
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "nuke.h"
|
||||
#include "xy.h"
|
||||
|
@ -46,7 +45,7 @@
|
|||
int
|
||||
ndump(void)
|
||||
{
|
||||
register int i;
|
||||
int i;
|
||||
struct nstr_item nstr;
|
||||
struct nukstr nuk;
|
||||
time_t now;
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "nat.h"
|
||||
#include "sect.h"
|
||||
#include "path.h"
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "nsc.h"
|
||||
#include "sect.h"
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "nuke.h"
|
||||
#include "xy.h"
|
||||
|
@ -45,10 +44,10 @@
|
|||
int
|
||||
nuke(void)
|
||||
{
|
||||
register int first_line = 0;
|
||||
register int first_nuke;
|
||||
register int show_comm;
|
||||
register int i;
|
||||
int first_line = 0;
|
||||
int first_nuke;
|
||||
int show_comm;
|
||||
int i;
|
||||
struct nstr_item nstr;
|
||||
struct nukstr nuk;
|
||||
struct sctstr sect;
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
#include <ctype.h>
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "ship.h"
|
||||
#include "sect.h"
|
||||
#include "news.h"
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "ship.h"
|
||||
#include "item.h"
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "nsc.h"
|
||||
#include "nat.h"
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "sect.h"
|
||||
#include "ship.h"
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "plane.h"
|
||||
#include "nsc.h"
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "plane.h"
|
||||
#include "nsc.h"
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
#include <string.h>
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "nat.h"
|
||||
#include "ship.h"
|
||||
|
@ -59,7 +58,7 @@ struct powsort {
|
|||
natid cnum;
|
||||
};
|
||||
|
||||
static void addtopow(register short *vec, register struct powstr *pow);
|
||||
static void addtopow(short *vec, struct powstr *pow);
|
||||
static void gen_power(void);
|
||||
static void out5(double value, int round_val, int round_flag);
|
||||
static int powcmp(struct powsort *p1, struct powsort *p2);
|
||||
|
@ -228,8 +227,8 @@ gen_power(void)
|
|||
{
|
||||
float *f_ptr;
|
||||
float *f_pt2;
|
||||
register struct powstr *pow;
|
||||
register int i;
|
||||
struct powstr *pow;
|
||||
int i;
|
||||
struct sctstr sect;
|
||||
struct plnstr plane;
|
||||
struct shpstr ship;
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "nsc.h"
|
||||
#include "sect.h"
|
||||
|
@ -46,10 +45,10 @@
|
|||
#include "commands.h"
|
||||
|
||||
int
|
||||
count_pop(register int n)
|
||||
count_pop(int n)
|
||||
{
|
||||
register int i;
|
||||
register int pop = 0;
|
||||
int i;
|
||||
int pop = 0;
|
||||
struct sctstr *sp;
|
||||
|
||||
for (i = 0; NULL != (sp = getsectid(i)); i++) {
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "plane.h"
|
||||
#include "nsc.h"
|
||||
|
|
|
@ -35,7 +35,6 @@
|
|||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "xy.h"
|
||||
#include "var.h"
|
||||
#include "ship.h"
|
||||
#include "land.h"
|
||||
#include "sect.h"
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "plane.h"
|
||||
#include "land.h"
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "ship.h"
|
||||
#include "item.h"
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "nat.h"
|
||||
#include "sect.h"
|
||||
#include "file.h"
|
||||
|
|
|
@ -35,7 +35,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "nat.h"
|
||||
#include "file.h"
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
#include "misc.h"
|
||||
#include "xy.h"
|
||||
#include "file.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "item.h"
|
||||
#include "nsc.h"
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "sect.h"
|
||||
#include "nsc.h"
|
||||
|
|
|
@ -35,7 +35,6 @@
|
|||
#include "options.h"
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "sect.h"
|
||||
#include "retreat.h"
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "nat.h"
|
||||
#include "nsc.h"
|
||||
|
|
|
@ -32,7 +32,6 @@
|
|||
*/
|
||||
|
||||
#include "misc.h"
|
||||
#include "var.h"
|
||||
#include "land.h"
|
||||
#include "nsc.h"
|
||||
#include "file.h"
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
#include <ctype.h>
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "ship.h"
|
||||
#include "path.h"
|
||||
#include "xy.h"
|
||||
|
@ -47,7 +46,7 @@
|
|||
static int
|
||||
show_sail(struct nstr_item *nstr)
|
||||
{
|
||||
register int count = 0;
|
||||
int count = 0;
|
||||
struct shpstr ship;
|
||||
|
||||
while (nxtitem(nstr, (s_char *)&ship)) {
|
||||
|
|
|
@ -35,7 +35,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "plane.h"
|
||||
#include "sect.h"
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "sect.h"
|
||||
#include "ship.h"
|
||||
|
|
|
@ -35,7 +35,6 @@
|
|||
#include "player.h"
|
||||
#include "sect.h"
|
||||
#include "news.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "ship.h"
|
||||
#include "land.h"
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "sect.h"
|
||||
#include "ship.h"
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "sect.h"
|
||||
#include "nsc.h"
|
||||
|
|
|
@ -37,7 +37,6 @@
|
|||
#include "misc.h"
|
||||
#include "xy.h"
|
||||
#include "file.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "item.h"
|
||||
#include "nsc.h"
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
*/
|
||||
|
||||
#include "misc.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "ship.h"
|
||||
#include "land.h"
|
||||
|
|
|
@ -37,7 +37,6 @@
|
|||
#include <ctype.h>
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "sect.h"
|
||||
#include "nat.h"
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
#include <ctype.h>
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "sect.h"
|
||||
#include "nat.h"
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
|
||||
#include <math.h>
|
||||
#include "misc.h"
|
||||
#include "var.h"
|
||||
#include "file.h"
|
||||
#include "sect.h"
|
||||
#include "item.h"
|
||||
|
@ -49,7 +48,7 @@
|
|||
int
|
||||
shark(void)
|
||||
{
|
||||
register int arg;
|
||||
int arg;
|
||||
time_t now;
|
||||
char *p;
|
||||
struct lonstr loan;
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "sect.h"
|
||||
#include "ship.h"
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "xy.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "news.h"
|
||||
#include "item.h"
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "sect.h"
|
||||
#include "nsc.h"
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "plane.h"
|
||||
#include "nat.h"
|
||||
|
@ -136,10 +135,10 @@ skyw(void)
|
|||
static int
|
||||
showsat(struct sky **skypp, int x, int y)
|
||||
{
|
||||
register struct sky *skyp;
|
||||
register struct sky *todelete = 0;
|
||||
register struct sky **prev;
|
||||
register struct plchrstr *pcp;
|
||||
struct sky *skyp;
|
||||
struct sky *todelete = 0;
|
||||
struct sky **prev;
|
||||
struct plchrstr *pcp;
|
||||
s_char *name;
|
||||
int nsat = 0;
|
||||
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "sect.h"
|
||||
#include "nsc.h"
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "item.h"
|
||||
#include "nat.h"
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "sect.h"
|
||||
#include "ship.h"
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "sect.h"
|
||||
#include "nsc.h"
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "xy.h"
|
||||
#include "sect.h"
|
||||
#include "nsc.h"
|
||||
|
|
|
@ -35,7 +35,6 @@
|
|||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "file.h"
|
||||
#include "var.h"
|
||||
#include "sect.h"
|
||||
#include "path.h"
|
||||
#include "news.h"
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue