(BestDistPath): All callers pass MOB_ROAD to parameter mob_type,
remove it. Callers changed.
This commit is contained in:
parent
0ea38208d1
commit
20c02295a6
5 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -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 *
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue