(bestownedpath, owned_and_navigable): Terrain parameter isn't really

used, remove it.  Use null bigmap argument to ignore terrain (flying),
non-null for navigation.  Callers changed.
This commit is contained in:
Markus Armbruster 2006-04-05 09:50:45 +00:00
parent abb9ae2338
commit 6fdac645ba
3 changed files with 51 additions and 133 deletions

View file

@ -367,17 +367,17 @@ BestLandPath(s_char *path,
s_char *
BestShipPath(s_char *path, int fx, int fy, int tx, int ty, int owner)
{
s_char *map;
char *map;
/* need to make sector database available to bestpath */
map = ef_ptr(EF_BMAP, owner);
return bestownedpath(path, map, fx, fy, tx, ty, ".=h", owner);
if (!map)
return NULL;
return bestownedpath(path, map, fx, fy, tx, ty, owner);
}
s_char *
BestAirPath(s_char *path, int fx, int fy, int tx, int ty)
{
return bestownedpath(path, 0, fx, fy, tx, ty, "", -1);
/* return (bestpath(path, fx, fy, tx, ty, "")); */
return bestownedpath(path, 0, fx, fy, tx, ty, -1);
}