Autocontinue constructing farms when the first queued for construction is full.
Seen at around minute 20 at https://wildfiregames.com/forum/topic/15271-0-ad-on-youtube/page/114/#comment-544694. If not tasked by the user, entities will not autogather. But now they at least construct the farms. Differential revision: https://code.wildfiregames.com/D4945 Comments by: @phosit, @Stan This was SVN commit r27559.
This commit is contained in:
parent
6adc9446be
commit
af64e565d7
@ -3170,7 +3170,8 @@ UnitAI.prototype.UnitFsmSpec = {
|
||||
|
||||
// If this building was e.g. a farm of ours, the entities that received
|
||||
// the build command should start gathering from it
|
||||
if ((oldData.force || oldData.autoharvest) && this.CanGather(msg.data.newentity))
|
||||
if ((oldData.force || oldData.autoharvest) && this.CanGather(msg.data.newentity) &&
|
||||
Engine.QueryInterface(msg.data.newentity, IID_ResourceSupply).IsAvailableTo(this.entity))
|
||||
{
|
||||
this.PerformGather(msg.data.newentity, true, false);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user