-/* $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.
#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"
#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);
#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},
{0, 1}, {1, 0}, {0, -1}, {-1, 0}
};
+
static void
dig(int y, int x)
{
return TRUE; /* OK */
}
+#endif
void
dig_maze(int x, int y)