ERR_NOT_IN_RANGE strange behaviour


  • int_max

    screeps.com/s/pDtmxg

    Here you can see sometimes the creep will move to get to the link.
    code: 

    var rsl = creep.transfer(link, RESOURCE_ENERGY);
    if (rsl == ERR_NOT_IN_RANGE) {
    creep.moveTo(link);
    }