#define MAPWIDTH(persec) ((WORLD_X/2)*(persec + 1)+1)
-extern s_char *routech[7][2];
-
extern void blankfill(s_char *, register struct range *, int);
/* src/lib/subs/border.c */
extern int map_set(natid, coord, coord, s_char, int);
#ifndef _PATH_H_
#define _PATH_H_
-#include "misc.h" /* s_char coord etc. */
-#include "sect.h" /* struct sctstr */
+#include "misc.h"
+#include "sect.h"
#include "xy.h"
/* direction indices */
#define DIR_LAST 6
extern signed char dirindex['z'-'a'+1];
-extern int diroff[][2];
-extern s_char dirch[];
+extern int diroff[DIR_MAP+1][2];
+extern char dirch[DIR_MAP+2];
+extern char *routech[DIR_LAST+1][2];
/* src/lib/subs/paths.c */
extern char *getpath(char *, char *, coord, coord, int, int, int);
* Known contributors to this file:
*/
-#include "misc.h"
+#include "path.h"
/* must agree with DIR_ defines */
-s_char dirch[] = {
+char dirch[] = {
'h', /* stop */
'u', /* up-right */
'j', /* right */
};
/* must agree with dirch[] and DIR_ defines */
-s_char *routech[7][2] = {
+char *routech[][2] = {
{" ", "$ $"},
{" /", "$ /"},
{" >", "$ >"},