From 12b64f130d7b1876283d9adc75f6e315f928f357 Mon Sep 17 00:00:00 2001 From: dholland Date: Sat, 29 Mar 2014 21:55:59 +0000 Subject: Additional minor cleanup and remove a straggler data declaration from hunt_common.h. --- hunt/huntd/extern.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'hunt/huntd/extern.c') diff --git a/hunt/huntd/extern.c b/hunt/huntd/extern.c index 3991849d..0c14090d 100644 --- a/hunt/huntd/extern.c +++ b/hunt/huntd/extern.c @@ -1,4 +1,4 @@ -/* $NetBSD: extern.c,v 1.8 2014/03/29 21:33:41 dholland Exp $ */ +/* $NetBSD: extern.c,v 1.9 2014/03/29 21:55:59 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.8 2014/03/29 21:33:41 dholland Exp $"); +__RCSID("$NetBSD: extern.c,v 1.9 2014/03/29 21:55:59 dholland Exp $"); #endif /* not lint */ #include "hunt.h" @@ -65,20 +65,22 @@ PLAYER Monitor[MAXMON]; /* all the monitors */ PLAYER *End_monitor = Monitor; /* last active monitor slot */ #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 -- cgit v1.2.3