Simulation room: findClosest no longer works correctly on source



  • Hi,

    I wanted to try again the survival challenge with my AI and started the simulation.
    My harvesters stupidly findClosest source and move to, then harvest, then go back to spawn.

    It turns out that the source in the middle is no longer found by findClosest at the exact tick a harvester is harvesting from the diagonal location.

    in case the explanation is not clear:

    XXXXXXXXWWW
    XXXXXXXXXDW
    XXXXXXXXHXW
    

    Can someone reproduce this? I'm sure that it happens for lot of people in the real game.



  •         WWW
             SW
            H W
    

    H = harvester
    W = WALL
    S = source on wall