summaryrefslogtreecommitdiffstats
path: root/hunt
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2011-05-23 22:58:44 +0000
committerjoerg <joerg@NetBSD.org>2011-05-23 22:58:44 +0000
commitd135dd52bda52c10d6e15d368818148da04feb10 (patch)
tree71bb155a1690af26b9879f33c11d4efc2be9c49f /hunt
parentcaf42cad5e778f1d93df2f44bcd10505105028ff (diff)
downloadbsdgames-darwin-d135dd52bda52c10d6e15d368818148da04feb10.tar.gz
bsdgames-darwin-d135dd52bda52c10d6e15d368818148da04feb10.tar.zst
bsdgames-darwin-d135dd52bda52c10d6e15d368818148da04feb10.zip
#if 0 some unused code.
Diffstat (limited to 'hunt')
-rw-r--r--hunt/huntd/makemaze.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/hunt/huntd/makemaze.c b/hunt/huntd/makemaze.c
index dd52ee4a..eca437e4 100644
--- a/hunt/huntd/makemaze.c
+++ b/hunt/huntd/makemaze.c
@@ -1,4 +1,4 @@
-/* $NetBSD: makemaze.c,v 1.7 2009/08/12 07:42:11 dholland Exp $ */
+/* $NetBSD: makemaze.c,v 1.8 2011/05/23 22:58:44 joerg 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: makemaze.c,v 1.7 2009/08/12 07:42:11 dholland Exp $");
+__RCSID("$NetBSD: makemaze.c,v 1.8 2011/05/23 22:58:44 joerg Exp $");
#endif /* not lint */
#include "hunt.h"
@@ -40,8 +40,10 @@ __RCSID("$NetBSD: makemaze.c,v 1.7 2009/08/12 07:42:11 dholland Exp $");
#define ISCLEAR(y,x) (Maze[y][x] == SPACE)
#define ODD(n) ((n) & 01)
+#if 0
static int candig(int, int);
static void dig(int, int);
+#endif
static void dig_maze(int, int);
static void remap(void);
@@ -67,6 +69,7 @@ makemaze(void)
#define NPERM 24
#define NDIR 4
+#if 0
static int dirs[NPERM][NDIR] = {
{0,1,2,3}, {3,0,1,2}, {0,2,3,1}, {0,3,2,1},
{1,0,2,3}, {2,3,0,1}, {0,2,1,3}, {2,3,1,0},
@@ -80,6 +83,7 @@ static int incr[NDIR][2] = {
{0, 1}, {1, 0}, {0, -1}, {-1, 0}
};
+
static void
dig(int y, int x)
{
@@ -133,6 +137,7 @@ candig(int y, int x)
return TRUE; /* OK */
}
+#endif
void
dig_maze(int x, int y)