X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/b432256ee8cb43f841c457f6d542c54fc98291e0..f9768285816ca5df05679e23592d03761d504380:/hunt/huntd/extern.c diff --git a/hunt/huntd/extern.c b/hunt/huntd/extern.c index 9faeea30..6add16ea 100644 --- a/hunt/huntd/extern.c +++ b/hunt/huntd/extern.c @@ -1,4 +1,4 @@ -/* $NetBSD: extern.c,v 1.7 2014/03/29 19:41:10 dholland Exp $ */ +/* $NetBSD: extern.c,v 1.10 2014/03/30 00:26:58 dholland Exp $ */ /* * Copyright (c) 1983-2003, Regents of the University of California. * All rights reserved. @@ -32,7 +32,7 @@ #include #ifndef lint -__RCSID("$NetBSD: extern.c,v 1.7 2014/03/29 19:41:10 dholland Exp $"); +__RCSID("$NetBSD: extern.c,v 1.10 2014/03/30 00:26:58 dholland Exp $"); #endif /* not lint */ #include "hunt.h" @@ -47,17 +47,12 @@ char Orig_maze[HEIGHT][WIDTH2]; /* the original maze */ struct pollfd fdset[3+MAXPL+MAXMON]; int Nplayer = 0; /* number of players */ -int Socket; /* main socket */ -int Status; /* stat socket */ int See_over[NASCII]; /* lookup table for determining whether * character represents "transparent" * item */ BULLET *Bullets = NULL; /* linked list of bullets */ -EXPL *Expl[EXPLEN]; /* explosion lists */ -EXPL *Last_expl; /* last explosion on Expl[0] */ - PLAYER Player[MAXPL]; /* all the players */ PLAYER *End_player = Player; /* last active player slot */ #ifdef BOOTS @@ -69,24 +64,22 @@ PLAYER Monitor[MAXMON]; /* all the monitors */ PLAYER *End_monitor = Monitor; /* last active monitor slot */ #endif -#ifdef VOLCANO -int volcano = 0; /* Explosion size */ -#endif - -int shot_req[MAXBOMB] = { +const int shot_req[MAXBOMB] = { BULREQ, GRENREQ, SATREQ, BOMB7REQ, BOMB9REQ, BOMB11REQ, BOMB13REQ, BOMB15REQ, BOMB17REQ, BOMB19REQ, BOMB21REQ, }; -int shot_type[MAXBOMB] = { +const int shot_type[MAXBOMB] = { SHOT, GRENADE, SATCHEL, BOMB, BOMB, BOMB, BOMB, BOMB, BOMB, BOMB, BOMB, }; -int slime_req[MAXSLIME] = { +#ifdef OOZE +const int slime_req[MAXSLIME] = { SLIMEREQ, SSLIMEREQ, SLIME2REQ, SLIME3REQ, }; +#endif