]> git.pond.sub.org Git - empserver/blobdiff - src/lib/update/finish.c
Optimize assemble_dist_paths() for foreign distribution center
[empserver] / src / lib / update / finish.c
index 781fd80f555cfc018dce9c43ad9322614ada66e7..266c6533f3511cef18f37034b7d9384f8af5f72c 100644 (file)
@@ -140,6 +140,8 @@ assemble_dist_paths(double *import_cost)
        dist = getsectp(sp->sct_dist_x, sp->sct_dist_y);
        if (CANT_HAPPEN(!dist))
            continue;
+       if (sp->sct_own != dist->sct_own)
+           continue;
        /* 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. */