Ticket #3037: 3037.1.diff

File 3037.1.diff, 754 bytes (added by Stan, 9 years ago)
  • binaries/data/mods/public/simulation/components/UnitAI.js

     
    50585058    if (template.indexOf("resource|") != -1)
    50595059        template = template.slice(9);
    50605060
    5061     if (!Engine.QueryInterface(this.entity, IID_ResourceGatherer))
     5061    if (!Engine.QueryInterface(this.entity, IID_ResourceGatherer) && !this.IsFormationController())
    50625062        this.AddOrder("Walk", { "x": x, "z": z, "force": false }, queued);
    50635063    else
    50645064        this.AddOrder("GatherNearPosition", { "type": type, "template": template, "x": x, "z": z, "force": false }, queued);