Fix units idling after unable to garrison while there are rally points.
When unable to garrison and that is the first rally point, the rest of
the rally point queue is not handled.
The check was introduced in df1d5d2260
because UnitAI didn't guard
garrisoning properly.
Patch by: @Langbart
Differential revision: https://code.wildfiregames.com/D4954
Fixes #6746
This was SVN commit r27560.
This commit is contained in:
parent
af64e565d7
commit
8f8e8710a0
@ -293,7 +293,7 @@ Trainer.prototype.Item.prototype.Spawn = function()
|
||||
createdEnts.push(ent);
|
||||
}
|
||||
|
||||
if (spawnedEnts.length && !autoGarrison && cmpRallyPoint)
|
||||
if (spawnedEnts.length && cmpRallyPoint)
|
||||
for (const com of GetRallyPointCommands(cmpRallyPoint, spawnedEnts))
|
||||
ProcessCommand(this.player, com);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user