summaryrefslogtreecommitdiffstats
path: root/hunt/huntd/extern.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2014-03-29 21:55:59 +0000
committerdholland <dholland@NetBSD.org>2014-03-29 21:55:59 +0000
commit12b64f130d7b1876283d9adc75f6e315f928f357 (patch)
treef7d804a5102d8343bfaee2d83a3d8ab110b4627f /hunt/huntd/extern.c
parent08f9fa6c4de91d3042c5cd9d369b1e0c8c8eb080 (diff)
downloadbsdgames-darwin-12b64f130d7b1876283d9adc75f6e315f928f357.tar.gz
bsdgames-darwin-12b64f130d7b1876283d9adc75f6e315f928f357.zip
Additional minor cleanup and remove a straggler data declaration
from hunt_common.h.
Diffstat (limited to 'hunt/huntd/extern.c')
-rw-r--r--hunt/huntd/extern.c12
1 files changed, 7 insertions, 5 deletions
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 <sys/cdefs.h>
#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