- /* 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);
- if (path)
- import_cost[n] = d;
+ import_cost[n] = path_find(sp->sct_dist_x, sp->sct_dist_y,
+ sp->sct_x, sp->sct_y,
+ dist->sct_own, MOB_MOVE);