Ticket #3037: 3037.3.diff
File 3037.3.diff, 892 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 (this.IsFormationController() || Engine.QueryInterface(this.entity, IID_ResourceGatherer)) 5062 this.AddOrder("GatherNearPosition", { "type": type, "template": template, "x": x, "z": z, "force": false }, queued); 5063 else 5062 5064 this.AddOrder("Walk", { "x": x, "z": z, "force": false }, queued); 5063 else5064 this.AddOrder("GatherNearPosition", { "type": type, "template": template, "x": x, "z": z, "force": false }, queued);5065 5065 }; 5066 5066 5067 5067 /**