diff --git a/include/prototypes.h b/include/prototypes.h index a62d993b..ec669930 100644 --- a/include/prototypes.h +++ b/include/prototypes.h @@ -320,7 +320,7 @@ extern void bp_enable_cachepath(void); extern void bp_disable_cachepath(void); extern void bp_clear_cachepath(void); extern char *BestDistPath(char *, struct sctstr *, struct sctstr *, - double *, int); + double *); extern char *BestLandPath(char *, struct sctstr *, struct sctstr *, double *, int); extern char *BestShipPath(char *, int, int, int, int, int); diff --git a/src/lib/commands/dist.c b/src/lib/commands/dist.c index bc03a162..b5f09347 100644 --- a/src/lib/commands/dist.c +++ b/src/lib/commands/dist.c @@ -100,7 +100,7 @@ dist(void) pr("Warning: you don't own %s!\n", xyas(dsect.sct_x, dsect.sct_y, player->cnum)); - if (!BestDistPath(buf, §, &dsect, &move_cost, MOB_ROAD)) { + if (!BestDistPath(buf, §, &dsect, &move_cost)) { pr("No owned path from %s to %s.\n", xyas(dsect.sct_x, dsect.sct_y, player->cnum), xyas(sect.sct_x, sect.sct_y, player->cnum)); diff --git a/src/lib/commands/path.c b/src/lib/commands/path.c index 568585e4..61f058f6 100644 --- a/src/lib/commands/path.c +++ b/src/lib/commands/path.c @@ -74,7 +74,7 @@ path(void) return RET_FAIL; } getsect(sect.sct_dist_x, sect.sct_dist_y, &dsect); - pp = BestDistPath(buf, §, &dsect, &move_cost, MOB_ROAD); + pp = BestDistPath(buf, §, &dsect, &move_cost); if (!pp) { pr("No path possible from %s to distribution sector %s\n", xyas(sect.sct_x, sect.sct_y, player->cnum), diff --git a/src/lib/common/path.c b/src/lib/common/path.c index aa335dbb..aa5a2512 100644 --- a/src/lib/common/path.c +++ b/src/lib/common/path.c @@ -337,9 +337,9 @@ pathcost(struct sctstr *start, char *path, int mob_type) char * BestDistPath(char *path, struct sctstr *from, - struct sctstr *to, double *cost, int mob_type) + struct sctstr *to, double *cost) { - return BestLandPath(path, from, to, cost, mob_type); + return BestLandPath(path, from, to, cost, MOB_ROAD); } char * diff --git a/src/lib/update/finish.c b/src/lib/update/finish.c index a13935cc..f6c64600 100644 --- a/src/lib/update/finish.c +++ b/src/lib/update/finish.c @@ -200,7 +200,7 @@ assemble_dist_paths(struct distinfo *distptrs) /* Now, get the best distribution path over roads */ /* Note we go from the dist center to the sector. This gives us the import path for that sector. */ - path = BestDistPath(buf, dist, sp, &d, MOB_ROAD); + path = BestDistPath(buf, dist, sp, &d); /* Now, we have a path */ if (path != NULL) {