#define getsectp(x, y) (struct sctstr *)ef_ptr(EF_SECTOR, sctoff((x), (y)))
#define getsectid(id) (struct sctstr *)ef_ptr(EF_SECTOR, (id))
-/* things relating to sectors */
-extern int sctoff(coord x, coord y);
-
extern struct dchrstr dchr[SCT_TYPE_MAX + 2];
#define IS_BIG_CITY(type) (dchr[(type)].d_pkg == UPKG)
extern coord strtoy(char *str, char **end);
extern coord xabs(struct natstr *np, coord relx);
extern coord yabs(struct natstr *np, coord rely);
+extern int sctoff(coord x, coord y);
extern coord xnorm(coord x);
extern coord ynorm(coord y);
extern int xyinrange(coord x, coord y, struct range *rp);
#include "file.h"
#include "map.h"
-#include "sect.h"
+#include "xy.h"
/* values of only_bmap:
* 0 = update both maps
#include "path.h"
#include "prototypes.h"
#include "sect.h"
+#include "xy.h"
static int
update_coastal_flag(coord x, coord y, coord ign_x, coord ign_y)
#include "path.h"
#include "prototypes.h"
#include "sect.h"
+#include "xy.h"
int
neigh(coord x, coord y, natid own)