[Outdated][Bug 1.14] wired source calculation at Supply Stockpiles

In some cases the nearest Resource Importer is skipped so a far away Resource Importer will be queued.
After save-and-load this will can be fixed.

How to reproduce:

  1. start a new game with ‘Giant Factory’
  2. build a new production line as shown at the picture
  3. add a second Resource Importer at the spot that is closest to painters
  4. watch the resource movements to any of the Supply Stockpiles

Or:

  1. Load the attached savegame
    routing_1.14.xml (308 KB)
  2. remove the resource importer at the spot that is closest to the painters
  3. re-place the Resource Importer after a few minutes
  4. watch the resource movements to any of the Supply Stockpiles

Even after 5 minutes the Supply Stockpile request new resources at the first placed resource importer even if the newly placed importer is closer.
Slots that can’t get their components from a supply stockpile (like the Painter and Fit Accessories) work fine so at all the sections are supplied like this:


The last picture is from an earlier savegame (game version 1.13) so it’s not 100% identical to the savegame and screenshot above but the behavior is still the same.

[Edit 2017-03-26]
One more example from later but same savegame.
autosave.rar (420 KB)
At that point I’ld like to have a chance to make the routes/source visible like the moving resources.


/Edit]