Use the new path finder for sea & air, drop bestownedpath()

bestownedpath() is a rather simple-minded breadth-first search.  It's
slower than the new path finder, and maintaining it in addition to the
new path finder makes no sense.
This commit is contained in:
Markus Armbruster 2011-02-22 07:18:41 +01:00
parent bbd6e9182f
commit 04363a92db
5 changed files with 57 additions and 234 deletions

View file

@ -52,6 +52,8 @@
#define MOB_MOVE 0
#define MOB_MARCH 1
#define MOB_RAIL 2
#define MOB_SAIL 3
#define MOB_FLY 4
enum p_mode { /* How to find path to destination */
P_NONE, /* don't */
@ -65,9 +67,6 @@ extern int diroff[DIR_MAP+1][2];
extern char dirch[DIR_MAP+2];
extern char *routech[DIR_LAST+1];
/* src/lib/common/bestpath.c */
extern char *bestownedpath(char *, char *, int, int, int, int, int);
/* src/lib/common/findpath.c */
extern void path_find_from(coord, coord, natid, int);
extern double path_find_to(coord, coord);