Ticket #3037: 3037.1.diff
File 3037.1.diff, 754 bytes (added by , 9 years ago) |
---|
-
binaries/data/mods/public/simulation/components/UnitAI.js
5058 5058 if (template.indexOf("resource|") != -1) 5059 5059 template = template.slice(9); 5060 5060 5061 if (!Engine.QueryInterface(this.entity, IID_ResourceGatherer) )5061 if (!Engine.QueryInterface(this.entity, IID_ResourceGatherer) && !this.IsFormationController()) 5062 5062 this.AddOrder("Walk", { "x": x, "z": z, "force": false }, queued); 5063 5063 else 5064 5064 this.AddOrder("GatherNearPosition", { "type": type, "template": template, "x": x, "z": z, "force": false }, queued);